__matrix_synapse: add --default-identity-server flag
This commit is contained in:
parent
96beae4c2f
commit
7b27eb5445
3 changed files with 12 additions and 0 deletions
|
@ -1368,7 +1368,13 @@ allow_guest_access: ${ALLOW_GUEST_ACCESS:?}
|
|||
# (By default, no suggestion is made, so it is left up to the client.)
|
||||
#
|
||||
#default_identity_server: https://matrix.org
|
||||
EOF
|
||||
|
||||
if [ -n "$DEFAULT_IDENTITY_SERVER" ]; then
|
||||
echo "default_identity_server: \"$DEFAULT_IDENTITY_SERVER\""
|
||||
fi
|
||||
|
||||
cat << EOF
|
||||
# Handle threepid (email/phone etc) registration and password resets through a set of
|
||||
# *trusted* identity servers. Note that this allows the configured identity server to
|
||||
# reset passwords for accounts!
|
||||
|
|
|
@ -200,6 +200,11 @@ if [ -f "$__object/parameter/saml2-idp-metadata-url" ]; then
|
|||
export SAML2_IDP_METADATA_URL
|
||||
fi
|
||||
|
||||
if [ -f "$__object/parameter/default-identity-server" ]; then
|
||||
DEFAULT_IDENTITY_SERVER=$(cat "$__object/parameter/default-identity-server")
|
||||
export DEFAULT_IDENTITY_SERVER
|
||||
fi
|
||||
|
||||
# Federation.
|
||||
ALLOW_PUBLIC_ROOMS_OVER_FEDERATION=$(get_boolean_for 'allow-public-room-over-federation')
|
||||
ALLOW_PUBLIC_ROOMS_WITHOUT_AUTH=$(get_boolean_for 'allow-public-rooms-without-auth')
|
||||
|
|
|
@ -37,3 +37,4 @@ tls-cert
|
|||
tls-private-key
|
||||
registration-shared-secret
|
||||
saml2-idp-metadata-url
|
||||
default-identity-server
|
||||
|
|
Loading…
Reference in a new issue