From c2ad1122e5956d8c56aaeb2f24f2fe8e2b9067b0 Mon Sep 17 00:00:00 2001 From: mr-forust Date: Thu, 11 Jun 2026 03:36:31 +0200 Subject: [PATCH] fix: add www subdomain routers --- homepages/compose.yaml | 4 ++-- homepages/k8s/ingress.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/homepages/compose.yaml b/homepages/compose.yaml index eabdfd5..13d6528 100644 --- a/homepages/compose.yaml +++ b/homepages/compose.yaml @@ -17,7 +17,7 @@ services: - "traefik.http.services.forust-homepage.loadbalancer.server.port=80" # Prod Router - - "traefik.http.routers.forust-homepage.rule=Host(`forust.xyz`)" + - "traefik.http.routers.forust-homepage.rule=Host(`forust.xyz`) || Host(`www.forust.xyz`)" - "traefik.http.routers.forust-homepage.entrypoints=websecure" - "traefik.http.routers.forust-homepage.tls=true" # Local Router @@ -44,7 +44,7 @@ services: - "traefik.http.services.xdfnx-homepage.loadbalancer.server.port=80" # Prod Router - - "traefik.http.routers.xdfnx.rule=Host(`xdfnx.cfd`)" + - "traefik.http.routers.xdfnx.rule=Host(`xdfnx.cfd`) || Host(`www.xdfnx.cfd`)" - "traefik.http.routers.xdfnx.entrypoints=websecure" - "traefik.http.routers.xdfnx.tls.certresolver=letsencrypt" - "traefik.http.routers.xdfnx.tls=true" diff --git a/homepages/k8s/ingress.yaml b/homepages/k8s/ingress.yaml index 0b7b73e..92acc77 100644 --- a/homepages/k8s/ingress.yaml +++ b/homepages/k8s/ingress.yaml @@ -7,7 +7,7 @@ spec: entryPoints: - websecure routes: - - match: Host(`forust.xyz`) + - match: Host(`forust.xyz`) || Host(`www.forust.xyz`) kind: Rule services: - name: forust-homepage-service @@ -56,7 +56,7 @@ spec: entryPoints: - websecure routes: - - match: Host(`xdfnx.cfd`) + - match: Host(`xdfnx.cfd`) || Host(`www.xdfnx.cfd`) kind: Rule services: - name: xdfnx-homepage-service