bundles/matrix-registration: configurable client_redirect

This commit is contained in:
Franzi 2023-05-26 07:10:09 +02:00
parent b8805c6f97
commit e6111efe2d
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 5 additions and 4 deletions

View file

@ -3,7 +3,7 @@ server_name: '${server_name}'
registration_shared_secret: '${reg_secret}'
admin_api_shared_secret: '${admin_secret}'
base_url: '${base_url}'
client_redirect: 'https://app.element.io/#/login'
client_redirect: '${client_redirect}'
client_logo: 'static/images/element-logo.png' # use '{cwd}' for current working directory
#db: 'sqlite:///opt/matrix-registration/data/db.sqlite3'
db: 'postgresql://${database['user']}:${database['password']}@localhost/${database['database']}'

View file

@ -37,11 +37,12 @@ git_deploy['/opt/matrix-registration/src'] = {
files['/opt/matrix-registration/config.yaml'] = {
'content_type': 'mako',
'context': {
'server_name': node.metadata.get('matrix-synapse/server_name'),
'reg_secret': '',
'admin_secret': node.metadata.get('matrix-registration/admin_secret'),
'database': node.metadata.get('matrix-registration/database'),
'base_url': node.metadata.get('matrix-registration/base_path', ''),
'client_redirect': node.metadata.get('matrix-registration/base_path'),
'database': node.metadata.get('matrix-registration/database'),
'reg_secret': '',
'server_name': node.metadata.get('matrix-synapse/server_name'),
},
'triggers': {
'svc_systemd:matrix-registration:restart',