fix: do fedi port work in traefik

This commit is contained in:
decentral1se 2021-12-13 13:55:16 +01:00
parent d2db4622a6
commit 37465d7baf
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
2 changed files with 0 additions and 19 deletions

View File

@ -23,12 +23,6 @@ services:
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "traefik.http.services.${STACK_NAME}-fedi.loadbalancer.server.port=8448"
- "traefik.http.routers.${STACK_NAME}-fedi.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}-fedi.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}-fedi.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "coop-cloud.${STACK_NAME}.version=0.1.0+v1.48.0"
app:

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 }}
}
}