fix: do fedi port work in traefik
This commit is contained in:
parent
d2db4622a6
commit
37465d7baf
|
@ -23,12 +23,6 @@ services:
|
||||||
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
|
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
|
||||||
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
||||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
- "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"
|
- "coop-cloud.${STACK_NAME}.version=0.1.0+v1.48.0"
|
||||||
|
|
||||||
app:
|
app:
|
||||||
|
|
|
@ -12,13 +12,7 @@ http {
|
||||||
include /etc/nginx/mime.types;
|
include /etc/nginx/mime.types;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
{{ if eq (env "DISABLE_FEDERATION") "1" }}
|
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
{{ else }}
|
|
||||||
listen 80;
|
|
||||||
listen 8448 default_server;
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
server_name {{ env "DOMAIN" }};
|
server_name {{ env "DOMAIN" }};
|
||||||
|
|
||||||
location ~* ^(\/_matrix|\/_synapse\/client) {
|
location ~* ^(\/_matrix|\/_synapse\/client) {
|
||||||
|
@ -28,12 +22,5 @@ http {
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
client_max_body_size 50M;
|
client_max_body_size 50M;
|
||||||
}
|
}
|
||||||
|
|
||||||
{{ if eq (env "DISABLE_FEDERATION") "1" }}
|
|
||||||
location /.well-known/matrix/ {
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue