Rien à faire là : label du site dans le docker compose de traefik
This commit is contained in:
parent
f976b75674
commit
d6f594b411
@ -37,15 +37,6 @@ services:
|
|||||||
- "traefik.http.routers.traefik_https.service=api@internal"
|
- "traefik.http.routers.traefik_https.service=api@internal"
|
||||||
- "traefik.http.routers.traefik_https.middlewares=test-adminipwhitelist@file,traefik-auth"
|
- "traefik.http.routers.traefik_https.middlewares=test-adminipwhitelist@file,traefik-auth"
|
||||||
- "traefik.http.middlewares.traefik-auth.basicauth.usersfile=/etc/traefik/passfile"
|
- "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:
|
networks:
|
||||||
- traefikNet
|
- traefikNet
|
||||||
|
Loading…
Reference in New Issue
Block a user