From 85244456627c4f1b28393e3e26ea48cf86c318e6 Mon Sep 17 00:00:00 2001 From: ace Date: Wed, 22 Dec 2021 19:23:55 +0300 Subject: [PATCH] add reload auth key for vmauth --- README.md | 1 + templates/etc/victoriametrics/vmauth/vmauth.conf.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1c07c07..2df0abd 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ Example hosts file: Example group_vars: + victoriametrics_vmauth_reloadAuthKey: reload-auth-key victoriametrics_vmauth_users: - id: "1" username: "foobar" diff --git a/templates/etc/victoriametrics/vmauth/vmauth.conf.j2 b/templates/etc/victoriametrics/vmauth/vmauth.conf.j2 index 2cccb77..ab446c4 100644 --- a/templates/etc/victoriametrics/vmauth/vmauth.conf.j2 +++ b/templates/etc/victoriametrics/vmauth/vmauth.conf.j2 @@ -1,4 +1,4 @@ # https://docs.victoriametrics.com/vmauth.html # -ARGS="-auth.config={{ victoriametrics_vmauth_config_file }}" +ARGS="-auth.config={{ victoriametrics_vmauth_config_file }} -reloadAuthKey={{ victoriametrics_vmauth_reloadAuthKey }}"