add redirects for chaos-west.tv misspelling

This commit is contained in:
Jan Koppe 2024-11-19 06:58:03 +01:00
parent 4e29b75d95
commit 69269341da
Signed by: thunfisch
GPG Key ID: BE935B0735A2129B
1 changed files with 9 additions and 6 deletions

View File

@ -11,9 +11,12 @@ locals {
"shepherd.auto-update" = "true",
"traefik.enable" = "true"
"traefik.http.services.cwtv-web.loadbalancer.server.port" = "80",
"traefik.http.routers.cwtv-web.rule" = "Host(`www.chaoswest.tv`)||Host(`chaoswest.tv`)",
"traefik.http.routers.cwtv-web.rule" = "Host(`www.chaoswest.tv`)||Host(`chaoswest.tv`)||Host(`chaos-west.tv`)||Host(`www.chaos-west.tv`)",
"traefik.http.routers.cwtv-web.tls" = "true",
"traefik.http.routers.cwtv-web.tls.certresolver" = "default",
"traefik.http.routers.cwtv-web.middlewares" = "cwtv-web-redirect",
"traefik.http.middlewares.cwtv-web-redirect.redirectregex.regex" = "^https://.*(\\.)?chaos-west\\.tv/(.*)", # double escaping is necessary here
"traefik.http.middlewares.cwtv-web-redirect.redirectregex.replacement" = "https://chaoswest.tv/$${2}", # double escaping is necessary here
}
}