summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Applications/Web/dweipert.de/docker-compose.yml9
1 files changed, 8 insertions, 1 deletions
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: