fix: do fedi port work in traefik

This commit is contained in:
cellarspoon
2021-12-13 13:55:16 +01:00
parent d2db4622a6
commit 37465d7baf
2 changed files with 0 additions and 19 deletions

View File

@ -12,13 +12,7 @@ http {
include /etc/nginx/mime.types;
server {
{{ if eq (env "DISABLE_FEDERATION") "1" }}
listen 80 default_server;
{{ else }}
listen 80;
listen 8448 default_server;
{{ end }}
server_name {{ env "DOMAIN" }};
location ~* ^(\/_matrix|\/_synapse\/client) {
@ -28,12 +22,5 @@ http {
proxy_set_header Host $host;
client_max_body_size 50M;
}
{{ if eq (env "DISABLE_FEDERATION") "1" }}
location /.well-known/matrix/ {
deny all;
}
{{ end }}
}
}