From d597b51e4ce443009a0e2e6905fc543a3e93a283 Mon Sep 17 00:00:00 2001 From: Liem Le Date: Thu, 29 Jul 2021 01:07:14 +0700 Subject: [PATCH] feat: configurable session_lifetime --- roles/matrix-synapse/templates/synapse/homeserver.yaml.j2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/matrix-synapse/templates/synapse/homeserver.yaml.j2 b/roles/matrix-synapse/templates/synapse/homeserver.yaml.j2 index f3d0734b5..c99482150 100644 --- a/roles/matrix-synapse/templates/synapse/homeserver.yaml.j2 +++ b/roles/matrix-synapse/templates/synapse/homeserver.yaml.j2 @@ -1118,8 +1118,11 @@ enable_registration: {{ matrix_synapse_enable_registration|to_json }} # retrospectively to users who have already logged in. # # By default, this is infinite. +# Example: 24h # -#session_lifetime: 24h +{% if matrix_synapse_session_lifetime|length > 0 %} +session_lifetime: {{ matrix_synapse_session_lifetime }} +{% endif %} # The user must provide all of the below types of 3PID when registering. #