only use sso redirection if sso is enabled

This commit is contained in:
2026-02-28 18:08:17 -08:00
parent b42d80bcc5
commit 6b4822a04e
4 changed files with 5 additions and 2 deletions

View File

@ -7,3 +7,5 @@ LETS_ENCRYPT_ENV=production
HOMESERVER=matrix-synapse.example.com
SERVER_NAME=mymatrix
BRAND=mymatrix
USE_SSO=false

View File

@ -1 +1 @@
export CONFIG_JSON_VERSION=v3
export CONFIG_JSON_VERSION=v4

View File

@ -8,6 +8,7 @@ services:
- DOMAIN
- HOMESERVER
- SERVER_NAME
- USE_SSO=${USE_SSO:-false}
networks:
- proxy
configs:

View File

@ -6,7 +6,7 @@
}
},
"sso_redirect_options": {
"immediate": true
"immediate": {{ env "USE_SSO" }}
},
"disable_custom_urls": false,
"disable_guests": true,