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

@ -22,5 +22,12 @@ http {
proxy_set_header Host $host;
client_max_body_size 50M;
}
{{ if eq (env "DISABLE_FEDERATION") "1" }}
location /.well-known/matrix/ {
deny all
}
{{ end }}
}
}