prepare for k3s

This commit is contained in:
Sebastian Hugentobler 2021-09-30 15:27:42 +02:00
parent dbe7530092
commit b16f387593
Signed by: shu
GPG Key ID: BB32CF3CA052C2F0
3 changed files with 12 additions and 5 deletions

View File

@ -117,6 +117,16 @@ user.
Whether to allow a user logging in via OIDC to match a pre-existing account Whether to allow a user logging in via OIDC to match a pre-existing account
instead of failing. instead of failing.
## OIDC_LOCALPART_TEMPLATE
- default: {{ user.preferred_username }}
Jinja2 template for the localpart of the MXID.
## OIDC_DISPLAY_NAME_TEMPLATE
- default: {{ user.given_name }} {{ user.last_name }}
Jinja2 template for the display name to set on first login.
## SSO_CLIENT_WHITELIST ## SSO_CLIENT_WHITELIST
- default: [] - default: []

View File

@ -1782,14 +1782,13 @@ oidc_config:
# #
# This must be configured if using the default mapping provider. # This must be configured if using the default mapping provider.
# #
localpart_template: "{{"{{"}} user.preferred_username {{"}}"}}" localpart_template: "{{ getenv "OIDC_LOCALPART_TEMPLATE" "{{"{{"}} user.preferred_username {{"}}"}}" }}"
# Jinja2 template for the display name to set on first login. # Jinja2 template for the display name to set on first login.
# #
# If unset, no displayname will be set. # If unset, no displayname will be set.
# #
#display_name_template: "{{"{{"}} user.given_name {{"}}"}} {{"{{"}} user.last_name {{"}}"}}" display_name_template: "{{ getenv "OIDC_DISPLAY_NAME_TEMPLATE" "{{"{{"}} user.given_name {{"}}"}} {{"{{"}} user.last_name {{"}}"}}" }}"
# Jinja2 templates for extra attributes to send back to the client during # Jinja2 templates for extra attributes to send back to the client during
# login. # login.
# #

View File

@ -1,2 +0,0 @@
/var/lib/matrix-synapse/signing/ true matrix-synapse 0640 0750
/var/lib/matrix-synapse/media_store/ true matrix-synapse 0640 0750