redirect www subdomain to chaospott.de

This commit is contained in:
Zehka 2020-07-06 10:58:19 +02:00
parent 82f294de2f
commit 263778b846

View File

@ -30,13 +30,26 @@ services:
- ${DATA_ROOT}/static/:/usr/share/nginx/html - ${DATA_ROOT}/static/:/usr/share/nginx/html
- ./configs/nginx:/etc/nginx - ./configs/nginx:/etc/nginx
labels: labels:
- traefik.frontend.rule=Host:chaospott.de,www.chaospott.de - traefik.frontend.rule=Host:chaospott.de
- traefik.port=80 - traefik.port=80
- traefik.docker.network=web - traefik.docker.network=web
networks: networks:
- extern - extern
expose: expose:
- 80 - 80
www-redirector:
image: cryptkiddie2/redirector:latest
restart: always
expose:
- 80
labels:
- traefik.frontend.rule=Host:www.chaospott.de
- traefik.port=80
- traefik.frontend.passHostHeader=true
environment:
- dest=https://chaospott.de
networks:
extern:
networks: networks:
extern: extern: