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,