generated from coop-cloud/example
only use sso redirection if sso is enabled #2
@ -7,3 +7,5 @@ LETS_ENCRYPT_ENV=production
|
||||
HOMESERVER=matrix-synapse.example.com
|
||||
SERVER_NAME=mymatrix
|
||||
BRAND=mymatrix
|
||||
|
||||
USE_SSO=false
|
||||
@ -8,6 +8,7 @@ services:
|
||||
- DOMAIN
|
||||
- HOMESERVER
|
||||
- SERVER_NAME
|
||||
- USE_SSO=${USE_SSO:-true}
|
||||
networks:
|
||||
- proxy
|
||||
configs:
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
}
|
||||
},
|
||||
"sso_redirect_options": {
|
||||
"immediate": true
|
||||
"immediate": {{ env "USE_SSO" }}
|
||||
|
decentral1se marked this conversation as resolved
Outdated
|
||||
},
|
||||
"disable_custom_urls": false,
|
||||
"disable_guests": true,
|
||||
|
||||
Reference in New Issue
Block a user
Thanks @moosemower 👏
If you run
abra app run <app> app bashand thenenv | grep -i sso, do you see a value? I believe this is evaluating tofalseor some "non-truthy" value because it is not threaded through via the env configuration?It's not present in the
.env.sample: https://git.coopcloud.tech/coop-cloud/element-web/src/branch/main/.env.sample (#USE_SOO=)And that needs to be threaded through into the container 👇
Then other operators can then customise the value. I believe to maintain backwards compatibility, you should set it to
USE_SSO=${USE_SSO:-true}to ensure that operators who don't update their.envfile will not have a broken upgrade. See below for more examples 👇We wanted to document this slightly involved environment updating dance over on https://docs.coopcloud.tech/maintainers/upgrade/#backwards-compatible-environment-variable-changes but didn't get around to it 🙃 Docs patches welcome!
Oooh, good catch! Indeed, deploying a new element-web with my changes,
No SSO variables in there! Derp. Including my .env.sample changes in an amended commit.
Also, now that I plumb in
environment: USE_SSO=${USE_SSO:-true}I get USE_SSO=true by default in the container's env, even if I don't set that variable to anything. Thanks for the tip! I won't promise a doc patch but I would like to :)Changes to my commit:
trueif not set for compatGreat, thanks for the update!