add registration file support
This commit is contained in:
parent
4010bfc849
commit
64ad23622b
@ -52,4 +52,4 @@ ENV HOME /var/lib/matrix-synapse
|
|||||||
|
|
||||||
EXPOSE 8448
|
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/
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
- `/var/lib/matrix-synapse/signing/`
|
- `/var/lib/matrix-synapse/signing/`
|
||||||
- `/var/lib/matrix-synapse/uploads/`
|
- `/var/lib/matrix-synapse/uploads/`
|
||||||
- `/etc/ssl/matrix-synapse/:ro`: certificates have to be here
|
- `/etc/ssl/matrix-synapse/:ro`: certificates have to be here
|
||||||
|
- `/var/lib/matrix-synapse/registrations/`
|
||||||
|
|
||||||
# Environment Variables
|
# Environment Variables
|
||||||
## SERVER_NAME
|
## SERVER_NAME
|
||||||
@ -63,6 +64,11 @@ Whether to generate new thumbnails on the fly to precisely match the resolution
|
|||||||
## REPORT_STATS
|
## REPORT_STATS
|
||||||
- default: no
|
- default: no
|
||||||
|
|
||||||
|
## REGISTRATIONS
|
||||||
|
- default: []
|
||||||
|
|
||||||
|
Comma seperated list of registration files to load.
|
||||||
|
|
||||||
Whether to report statistics.
|
Whether to report statistics.
|
||||||
|
|
||||||
# Ports
|
# Ports
|
||||||
|
@ -3,4 +3,4 @@ src = "server.yaml.tmpl"
|
|||||||
dest = "/var/lib/matrix-synapse/server.yaml"
|
dest = "/var/lib/matrix-synapse/server.yaml"
|
||||||
uid = 2222
|
uid = 2222
|
||||||
gid = 2222
|
gid = 2222
|
||||||
mode = "0644"
|
mode = "0640"
|
||||||
|
@ -114,7 +114,12 @@ room_invite_state_types:
|
|||||||
- "m.room.avatar"
|
- "m.room.avatar"
|
||||||
- "m.room.name"
|
- "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"}}"
|
macaroon_secret_key: "{{getenv "MACAROON_SECRET_KEY"}}"
|
||||||
expire_access_token: False
|
expire_access_token: False
|
||||||
@ -122,7 +127,7 @@ expire_access_token: False
|
|||||||
signing_key_path: "/var/lib/matrix-synapse/signing/signing.key"
|
signing_key_path: "/var/lib/matrix-synapse/signing/signing.key"
|
||||||
old_signing_keys: {}
|
old_signing_keys: {}
|
||||||
|
|
||||||
key_refresh_interval: "1d" # 1 Day.
|
key_refresh_interval: "1d"
|
||||||
|
|
||||||
perspectives:
|
perspectives:
|
||||||
servers:
|
servers:
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
/var/lib/matrix-synapse/signing/ true matrix-synapse 0640 0750
|
/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/media_store/ true matrix-synapse 0640 0750
|
||||||
/var/lib/matrix-synapse/uploads 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
|
||||||
|
Loading…
Reference in New Issue
Block a user