This commit is contained in:
Philip Cheung 2024-10-08 15:55:32 +08:00
parent 06e21a738a
commit ed00da9d92
1 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,8 @@ services:
- traefik.basic.allinone.rule=Host(`${DOMAIN?Variable not set}`) || Host(`www.${DOMAIN?Variable not set}`) - traefik.basic.allinone.rule=Host(`${DOMAIN?Variable not set}`) || Host(`www.${DOMAIN?Variable not set}`)
- "traefik.basic.port=80" - "traefik.basic.port=80"
- "traefik.basic.protocol=http" - "traefik.basic.protocol=http"
- traefik.http.routers.allinone-https.middlewares=www-redirect
- traefik.http.routers.allinone-http.middlewares=https-redirect,www-redirect
# Enable www redirection for HTTP and HTTPS # Enable www redirection for HTTP and HTTPS
# - traefik.http.routers.allAndOne-https.middlewares=www-redirect # - traefik.http.routers.allAndOne-https.middlewares=www-redirect