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

@ -8,12 +8,15 @@ data "docker_network" "traefik" {
locals { locals {
labels = { labels = {
"shepherd.auto-update" = "true", "shepherd.auto-update" = "true",
"traefik.enable" = "true" "traefik.enable" = "true"
"traefik.http.services.cwtv-web.loadbalancer.server.port" = "80", "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" = "true",
"traefik.http.routers.cwtv-web.tls.certresolver" = "default", "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
} }
} }