Commit 1afee550 authored by kaiyou's avatar kaiyou

Use subdomains for project pandore

parent 1342651d
......@@ -5,7 +5,7 @@ services:
image: nginx:latest
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:${hostname};PathPrefix:/.well-known/matrix/
- traefik.frontend.rule=Host:matrix.${hostname};PathPrefix:/.well-known/matrix/
- traefik.port=80
volumes:
- ./wellknown:/usr/share/nginx/html:ro
......@@ -15,13 +15,13 @@ services:
labels:
- traefik.enable=true
- traefik.port=8008
- traefik.frontend.rule=Host:${hostname}
- traefik.frontend.rule=Host:matrix.${hostname}
- traefik.frontend.headers.STSSeconds=315360000
- traefik.frontend.headers.frameDeny=true
- traefik.frontend.headers.browserXSSFilter=true
- traefik.frontend.headers.customResponseHeaders=Server:www||X-Powered-By:www
- traefik.frontend.redirect.regex=https?://${hostname}/$$
- traefik.frontend.redirect.replacement=https://${riot_hostname}
- traefik.frontend.redirect.regex=https?://matrix.${hostname}/$$
- traefik.frontend.redirect.replacement=https://riot.${hostname}
volumes:
- ./data:/data
depends_on:
......@@ -32,7 +32,7 @@ services:
labels:
- traefik.enable=true
- traefik.port=80
- traefik.frontend.rule=Host:${riot_hostname}
- traefik.frontend.rule=Host:riot.${hostname}
- traefik.frontend.headers.STSSeconds=315360000
- traefik.frontend.headers.browserXSSFilter=true
- traefik.frontend.headers.customResponseHeaders=Server:www||X-Powered-By:www
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment