Set DOMAIN correctly
This commit is contained in:
parent
80e0bd3041
commit
c298155ceb
2 changed files with 4 additions and 4 deletions
|
@ -9,7 +9,7 @@ services:
|
||||||
- serve
|
- serve
|
||||||
environment:
|
environment:
|
||||||
- TZ=UTC
|
- TZ=UTC
|
||||||
- NTFY_BASE_URL=https://push.florianzirker.de
|
- NTFY_BASE_URL=https://push.${DOMAIN}
|
||||||
- NTFY_LISTEN_HTTP=0.0.0.0:80
|
- NTFY_LISTEN_HTTP=0.0.0.0:80
|
||||||
- NTFY_CACHE_FILE=/var/cache/ntfy/cache.db
|
- NTFY_CACHE_FILE=/var/cache/ntfy/cache.db
|
||||||
- NTFY_CACHE_DURATION=24h
|
- NTFY_CACHE_DURATION=24h
|
||||||
|
|
|
@ -19,8 +19,8 @@ services:
|
||||||
- "traefik.http.routers.webroot.tls.certresolver=netcup"
|
- "traefik.http.routers.webroot.tls.certresolver=netcup"
|
||||||
- "traefik.http.routers.webroot.tls.options=intermediate@file"
|
- "traefik.http.routers.webroot.tls.options=intermediate@file"
|
||||||
- "traefik.http.routers.webroot.middlewares=redirect-to-www"
|
- "traefik.http.routers.webroot.middlewares=redirect-to-www"
|
||||||
- "traefik.http.middlewares.redirect-to-www.redirectregex.regex=^https?://florianzirker.de/(.*)"
|
- "traefik.http.middlewares.redirect-to-www.redirectregex.regex=^https?://${DOMAIN}/(.*)"
|
||||||
- "traefik.http.middlewares.redirect-to-www.redirectregex.replacement=https://www.florianzirker.de/$${1}"
|
- "traefik.http.middlewares.redirect-to-www.redirectregex.replacement=https://www.${DOMAIN}/$${1}"
|
||||||
- "traefik.http.middlewares.redirect-to-www.redirectregex.permanent=true"
|
- "traefik.http.middlewares.redirect-to-www.redirectregex.permanent=true"
|
||||||
- "traefik.http.routers.www-secure.entrypoints=websecure"
|
- "traefik.http.routers.www-secure.entrypoints=websecure"
|
||||||
- "traefik.http.routers.www-secure.rule=Host(`www.${DOMAIN}`)"
|
- "traefik.http.routers.www-secure.rule=Host(`www.${DOMAIN}`)"
|
||||||
|
|
Loading…
Reference in a new issue