diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-12-14 13:14:32 +0100 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-12-14 13:15:14 +0100 |
commit | 31b0f185e4d93bbda867695a95798b655183b2d8 (patch) | |
tree | 6b0ed1091086c217e5793d15ed4d5690eb2d15ed /Applications/Web | |
parent | 5b1816e3696550b75c21ba7e6e71bee28058475b (diff) |
[web/dweipert.de] use www subdomain
Diffstat (limited to 'Applications/Web')
-rw-r--r-- | Applications/Web/dweipert.de/docker-compose.yml | 9 |
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: |