fix(authelia): correctly template session.redis config section, fix container restarts recreating the container

This commit is contained in:
transcaffeine 2024-11-02 10:48:05 +01:00
parent 43d0dc171a
commit d3d6f89949
Signed by: transcaffeine
GPG Key ID: 03624C433676E465
2 changed files with 9 additions and 2 deletions

View File

@ -4,5 +4,7 @@
docker_container:
name: "{{ authelia_container_name }}"
state: started
restart: yes
restart: true
comparisons:
'*': ignore
listen: restart-authelia

View File

@ -170,7 +170,12 @@ authelia_config_access_control:
default_policy: "{{ authelia_config_access_control_default_policy }}"
networks: "{{ authelia_config_access_control_networks }}"
rules: "{{ authelia_config_access_control_rules }}"
authelia_config_session:
authelia_config_session: >-2
{{ authelia_config_session_base
| combine(({'redis': authelia_config_session_redis}
if authelia_config_session_redis_host else {}), recursive=true)
}}
authelia_config_session_base:
name: "{{ authelia_config_session_name }}"
domain: "{{ authelia_config_session_domain }}"
same_site: "{{ authelia_config_session_same_site }}"