From e89702bf75ec04b65070ff1bcebcc40ff4242ed8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Fra=C3=9F?= Date: Mon, 3 Jun 2024 23:55:51 +0200 Subject: [PATCH] [mod] role:authelia:add var "password_reset_custom_url" --- roles/authelia/defaults/main.json | 1 + roles/authelia/templates/conf-main.json.j2 | 2 +- roles/authelia/vardef.json | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/roles/authelia/defaults/main.json b/roles/authelia/defaults/main.json index 8394076..47b1e01 100644 --- a/roles/authelia/defaults/main.json +++ b/roles/authelia/defaults/main.json @@ -24,6 +24,7 @@ "var_authelia_storage_data_mariadb_schema": "authelia", "var_authelia_ntp_server": "time.cloudflare.com:123", "var_authelia_password_reset_enabled": false, + "var_authelia_password_reset_custom_url": null, "var_authelia_notification_mode": "smtp", "var_authelia_notification_file_path": "/var/authelia/notifications", "var_authelia_notification_smtp_host": "smtp.example.org", diff --git a/roles/authelia/templates/conf-main.json.j2 b/roles/authelia/templates/conf-main.json.j2 index df26aaa..0f163af 100644 --- a/roles/authelia/templates/conf-main.json.j2 +++ b/roles/authelia/templates/conf-main.json.j2 @@ -56,7 +56,7 @@ {% else %} "disable": true, {% endif %} - "custom_url": "" + "custom_url": "{{password_reset_custom_url}}" }, "refresh_interval": "5m", "file": { diff --git a/roles/authelia/vardef.json b/roles/authelia/vardef.json index 3fb5bbc..2e764e3 100644 --- a/roles/authelia/vardef.json +++ b/roles/authelia/vardef.json @@ -99,6 +99,11 @@ "type": "boolean", "mandatory": false }, + "password_reset_custom_url": { + "nullable": true, + "type": "string", + "mandatory": false + }, "notification_mode": { "type": "string", "mandatory": false,