bundles/matrix-registration: configurable client_redirect
This commit is contained in:
parent
b8805c6f97
commit
e6111efe2d
2 changed files with 5 additions and 4 deletions
|
@ -3,7 +3,7 @@ server_name: '${server_name}'
|
||||||
registration_shared_secret: '${reg_secret}'
|
registration_shared_secret: '${reg_secret}'
|
||||||
admin_api_shared_secret: '${admin_secret}'
|
admin_api_shared_secret: '${admin_secret}'
|
||||||
base_url: '${base_url}'
|
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
|
client_logo: 'static/images/element-logo.png' # use '{cwd}' for current working directory
|
||||||
#db: 'sqlite:///opt/matrix-registration/data/db.sqlite3'
|
#db: 'sqlite:///opt/matrix-registration/data/db.sqlite3'
|
||||||
db: 'postgresql://${database['user']}:${database['password']}@localhost/${database['database']}'
|
db: 'postgresql://${database['user']}:${database['password']}@localhost/${database['database']}'
|
||||||
|
|
|
@ -37,11 +37,12 @@ git_deploy['/opt/matrix-registration/src'] = {
|
||||||
files['/opt/matrix-registration/config.yaml'] = {
|
files['/opt/matrix-registration/config.yaml'] = {
|
||||||
'content_type': 'mako',
|
'content_type': 'mako',
|
||||||
'context': {
|
'context': {
|
||||||
'server_name': node.metadata.get('matrix-synapse/server_name'),
|
|
||||||
'reg_secret': '',
|
|
||||||
'admin_secret': node.metadata.get('matrix-registration/admin_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', ''),
|
'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': {
|
'triggers': {
|
||||||
'svc_systemd:matrix-registration:restart',
|
'svc_systemd:matrix-registration:restart',
|
||||||
|
|
Loading…
Reference in a new issue