add registration file support

This commit is contained in:
Sebastian Hugentobler 2018-05-23 21:34:55 +02:00
parent 4010bfc849
commit 64ad23622b
5 changed files with 16 additions and 4 deletions

View File

@ -52,4 +52,4 @@ ENV HOME /var/lib/matrix-synapse
EXPOSE 8448
VOLUME /var/lib/matrix-synapse/media_store/ /var/lib/matrix-synapse/uploads /var/lib/matrix-synapse/signing/ /etc/ssl/matrix-synapse/
VOLUME /var/lib/matrix-synapse/media_store/ /var/lib/matrix-synapse/uploads /var/lib/matrix-synapse/signing/ /etc/ssl/matrix-synapse/ /var/lib/matrix-synapse/registrations/

View File

@ -5,6 +5,7 @@
- `/var/lib/matrix-synapse/signing/`
- `/var/lib/matrix-synapse/uploads/`
- `/etc/ssl/matrix-synapse/:ro`: certificates have to be here
- `/var/lib/matrix-synapse/registrations/`
# Environment Variables
## SERVER_NAME
@ -63,6 +64,11 @@ Whether to generate new thumbnails on the fly to precisely match the resolution
## REPORT_STATS
- default: no
## REGISTRATIONS
- default: []
Comma seperated list of registration files to load.
Whether to report statistics.
# Ports

View File

@ -3,4 +3,4 @@ src = "server.yaml.tmpl"
dest = "/var/lib/matrix-synapse/server.yaml"
uid = 2222
gid = 2222
mode = "0644"
mode = "0640"

View File

@ -114,7 +114,12 @@ room_invite_state_types:
- "m.room.avatar"
- "m.room.name"
app_service_config_files: []
app_service_config_files: {{if not (getenv "REGISTRATIONS")}}[]{{end}}
{{if (getenv "REGISTRATIONS")}}
{{range $registration := split (getenv "REGISTRATIONS") ";"}}
- {{ $registration }}
{{end}}
{{end}}
macaroon_secret_key: "{{getenv "MACAROON_SECRET_KEY"}}"
expire_access_token: False
@ -122,7 +127,7 @@ expire_access_token: False
signing_key_path: "/var/lib/matrix-synapse/signing/signing.key"
old_signing_keys: {}
key_refresh_interval: "1d" # 1 Day.
key_refresh_interval: "1d"
perspectives:
servers:

View File

@ -1,3 +1,4 @@
/var/lib/matrix-synapse/signing/ true matrix-synapse 0640 0750
/var/lib/matrix-synapse/media_store/ true matrix-synapse 0640 0750
/var/lib/matrix-synapse/uploads true matrix-synapse 0640 0750
/var/lib/matrix-synapse/registrations true matrix-synapse 0640 0750