fix: do fedi port work in traefik
This commit is contained in:
@ -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 }}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user