Add redirect to /dashboard/

This commit is contained in:
2021-04-17 13:01:12 +00:00
parent 0b97b07445
commit ffd3d04bc8

View File

@@ -56,10 +56,15 @@ services:
# Priority goes from first in the list to last.
- "traefik.http.middlewares.traefik.chain.middlewares=headers-base@file,headers-sts@file,headers-policy-self@file"
- "traefik.http.middlewares.treafik-redirect.redirectregex.permanent=true"
- "traefik.http.middlewares.treafik-redirect.redirectregex.regex=^https://${FQDN}/?$$"
- "traefik.http.middlewares.treafik-redirect.redirectregex.replacement=https://${FQDN}/dashboard/"
# Traefik Dashboard
- "traefik.http.routers.traefik.service=api@internal"
- "traefik.http.routers.traefik.entrypoints=web-secure"
- "traefik.http.routers.traefik.rule=Host(`${FQDN}`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))"
#- "traefik.http.routers.traefik.rule=Host(`${FQDN}`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))"
- "traefik.http.routers.traefik.rule=Host(`${FQDN}`)"
- "traefik.http.routers.traefik.tls=true"
- "traefik.http.routers.traefik.tls.certresolver=letsencrypt"
- "traefik.http.routers.traefik.middlewares=traefik,net-home@file,auth-traefik@file"