From 31b0f185e4d93bbda867695a95798b655183b2d8 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Thu, 14 Dec 2023 13:14:32 +0100 Subject: [web/dweipert.de] use www subdomain --- Applications/Web/dweipert.de/docker-compose.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Applications/Web') diff --git a/Applications/Web/dweipert.de/docker-compose.yml b/Applications/Web/dweipert.de/docker-compose.yml index 6f1efb9..59293d5 100644 --- a/Applications/Web/dweipert.de/docker-compose.yml +++ b/Applications/Web/dweipert.de/docker-compose.yml @@ -10,9 +10,16 @@ services: - "traefik" labels: - "traefik.enable=true" + - "traefik.http.routers.web-www-dweipert-de.rule=Host(`www.${DOMAIN}`)" + - "traefik.http.routers.web-www-dweipert-de.entrypoints=websecure" + - "traefik.http.routers.web-www-dweipert-de.tls.certresolver=letsencrypt" - "traefik.http.routers.web-dweipert-de.rule=Host(`${DOMAIN}`)" - "traefik.http.routers.web-dweipert-de.entrypoints=websecure" - - "traefik.http.routers.web-dweipert.de.tls.certresolver=letsencrypt" + - "traefik.http.routers.web-dweipert-de.tls.certresolver=letsencrypt" + - "traefik.http.routers.web-dweipert-de.middlewares=web-dweipert-de-www" + - "traefik.http.middlewares.web-dweipert-de-www.redirectregex.regex=(.)*" + - "traefik.http.middlewares.web-dweipert-de-www.redirectregex.replacement=https://www.${DOMAIN}" + - "traefik.http.middlewares.web-dweipert-de-www.redirectregex.permanent=true" networks: traefik: -- cgit v1.2.3