feat: disable federation

Closes https://git.coopcloud.tech/coop-cloud/matrix-synapse/issues/19.
This commit is contained in:
cellarspoon
2021-12-12 23:50:45 +01:00
parent 650e0cbc28
commit 10e459f183
4 changed files with 20 additions and 0 deletions

View File

@ -310,9 +310,15 @@ listeners:
type: http
x_forwarded: true
{{ if eq (env "DISABLE_FEDERATION") "1" }}
resources:
- names: [client]
compress: false
{{ else }}
resources:
- names: [client, federation]
compress: false
{{ end }}
# example additional_resources:
#
@ -649,6 +655,9 @@ retention:
# - lon.example.com
# - nyc.example.com
# - syd.example.com
{{ if eq (env "DISABLE_FEDERATION") "1" }}
federation_domain_whitelist: []
{{ end }}
# Report prometheus metrics on the age of PDUs being sent to and received from
# the following domains. This can be used to give an idea of "delay" on inbound