Add www to non-www redirect for korhonen.cc

This commit is contained in:
Marko Korhonen 2022-03-24 12:19:29 +02:00
parent e0fef53231
commit a4dca20f8c
2 changed files with 5 additions and 5 deletions

View file

@ -24,7 +24,7 @@ labels = [
"traefik.http.routers.jellyfin-redirect.rule=Host(`jellyfin.korhonen.cc`)",
"traefik.http.routers.jellyfin-redirect.middlewares=http2https@file",
"traefik.http.routers.jellyfin.entrypoints=https",
"traefik.http.routers.gitea.middlewares=secHeaders@file",
"traefik.http.routers.jellyfin.middlewares=secHeaders@file",
"traefik.http.routers.jellyfin.rule=Host(`jellyfin.korhonen.cc`)",
"traefik.http.routers.jellyfin.service=jellyfin",
"traefik.http.services.jellyfin.loadbalancer.server.port=8096",

View file

@ -13,11 +13,11 @@ labels = [
"traefik.enable=true",
"traefik.docker.network=proxy",
"traefik.http.routers.korhonen-redirect.entrypoints=http",
"traefik.http.routers.korhonen-redirect.rule=Host(`korhonen.cc`)",
"traefik.http.routers.korhonen-redirect.middlewares=http2https@file",
"traefik.http.routers.korhonen-redirect.rule=Host(`korhonen.cc`) || Host(`www.korhonen.cc`)",
"traefik.http.routers.korhonen-redirect.middlewares=www2non-www@file,http2https@file",
"traefik.http.routers.korhonen.entrypoints=https",
"traefik.http.routers.korhonen.middlewares=secHeaders@file",
"traefik.http.routers.korhonen.rule=Host(`korhonen.cc`)",
"traefik.http.routers.korhonen.middlewares=secHeaders@file,www2non-www@file",
"traefik.http.routers.korhonen.rule=Host(`korhonen.cc`) || Host(`www.korhonen.cc`)",
"traefik.http.routers.korhonen.service=korhonen",
"traefik.http.services.korhonen.loadbalancer.server.port=80",
]