__matrix_synapse: add --sso-template-dir parameter
This commit is contained in:
parent
287d8df9bd
commit
c32a1836aa
5 changed files with 9 additions and 1 deletions
|
@ -2191,7 +2191,7 @@ sso:
|
|||
# You can see the default templates at:
|
||||
# https://github.com/matrix-org/synapse/tree/master/synapse/res/templates
|
||||
#
|
||||
#template_dir: "res/templates"
|
||||
template_dir: "${SSO_TEMPLATE_DIR:?}"
|
||||
|
||||
|
||||
# JSON web token integration. The following settings can be used to make
|
||||
|
|
|
@ -205,6 +205,9 @@ saml2-mapping-provider-extra-settings
|
|||
Extra YAML-formatted key/pair values provided as configuration to the SAML2
|
||||
mapping provider module (e.g. 'key: value'). Can be specified multiple times.
|
||||
|
||||
sso-template-dir
|
||||
Directory used to source SSO-related HTML templates.
|
||||
|
||||
extra-setting
|
||||
Arbitrary string to be added to the configuration file. Can be specified multiple times.
|
||||
|
||||
|
|
|
@ -220,6 +220,9 @@ if [ -f "$__object/parameter/saml2-mapping-provider-extra-config" ]; then
|
|||
export SAML2_MAPPING_PROVIDER_EXTRA_CONFIG
|
||||
fi
|
||||
|
||||
SSO_TEMPLATE_DIR=$(cat "$__object/parameter/sso-template-dir")
|
||||
export SSO_TEMPLATE_DIR
|
||||
|
||||
if [ -n "$SAML2_SP_KEY" ] && [ -z "$SAML2_SP_CERT" ]; then
|
||||
echo "--saml2-sp-cert must be set if --saml2-sp-key is provided." >&2
|
||||
exit 1
|
||||
|
|
1
type/__matrix_synapse/parameter/default/sso-template-dir
Normal file
1
type/__matrix_synapse/parameter/default/sso-template-dir
Normal file
|
@ -0,0 +1 @@
|
|||
res/template
|
|
@ -41,3 +41,4 @@ saml2-sp-key
|
|||
saml2-sp-cert
|
||||
default-identity-server
|
||||
saml2-mapping-provider-module
|
||||
sso-template-dir
|
||||
|
|
Loading…
Reference in a new issue