Rien à faire là : label du site dans le docker compose de traefik

This commit is contained in:
Gael 2024-08-16 17:04:26 +02:00
parent f976b75674
commit d6f594b411

View File

@ -37,15 +37,6 @@ services:
- "traefik.http.routers.traefik_https.service=api@internal"
- "traefik.http.routers.traefik_https.middlewares=test-adminipwhitelist@file,traefik-auth"
- "traefik.http.middlewares.traefik-auth.basicauth.usersfile=/etc/traefik/passfile"
# Middleware for redirection
- "traefik.http.middlewares.redirect-to-www.redirectregex.regex=^https?://${domain}(.*)"
- "traefik.http.middlewares.redirect-to-www.redirectregex.replacement=https://www.${domain}$${1}"
- "traefik.http.middlewares.redirect-to-www.redirectregex.permanent=true"
# Router for redirection
- "traefik.http.routers.redirection.rule=Host(`${domain}`)"
- "traefik.http.routers.redirection.entrypoints=websecure"
- "traefik.http.routers.redirection.middlewares=redirect-to-www"
networks:
- traefikNet