generated from sambuc/tpl.docker-compose
Add redirect to /dashboard/
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user