feat: Remove www
This commit is contained in:
parent
3741f5969d
commit
49f40a4128
|
@ -10,13 +10,27 @@ services:
|
||||||
labels:
|
labels:
|
||||||
traefik.enable: "true"
|
traefik.enable: "true"
|
||||||
traefik.docker.network: "traefik"
|
traefik.docker.network: "traefik"
|
||||||
|
|
||||||
|
# Redirect http:// to https://
|
||||||
traefik.http.routers.histoiredunpied.rule: "Host(`${URL}`)"
|
traefik.http.routers.histoiredunpied.rule: "Host(`${URL}`)"
|
||||||
traefik.http.routers.histoiredunpied.entrypoints: "web"
|
traefik.http.routers.histoiredunpied.entrypoints: "web"
|
||||||
traefik.http.routers.histoiredunpied.middlewares: "redirect-https@docker"
|
traefik.http.routers.histoiredunpied.middlewares: "redirect-https@docker"
|
||||||
|
|
||||||
traefik.http.routers.histoiredunpied-https.rule: "Host(`${URL}`)"
|
traefik.http.routers.histoiredunpied-https.rule: "Host(`${URL}`)"
|
||||||
traefik.http.routers.histoiredunpied-https.entrypoints: "websecure"
|
traefik.http.routers.histoiredunpied-https.entrypoints: "websecure"
|
||||||
traefik.http.routers.histoiredunpied-https.tls.certResolver: "letsencrypt"
|
traefik.http.routers.histoiredunpied-https.tls.certResolver: "letsencrypt"
|
||||||
|
|
||||||
|
# Redirect http://www to https://
|
||||||
|
traefik.http.routers.histoiredunpied-redirect-www.rule: "Host(`www.${URL}`)"
|
||||||
|
traefik.http.routers.histoiredunpied-redirect-www.entrypoints: "web"
|
||||||
|
traefik.http.routers.histoiredunpied-redirect-www.middlewares: "redirect-www@docker"
|
||||||
|
|
||||||
|
# Redirect https://www to https://
|
||||||
|
traefik.http.routers.histoiredunpied-redirect-www-https.rule: "Host(`www.${URL}`)"
|
||||||
|
traefik.http.routers.histoiredunpied-redirect-www-https.entrypoints: "websecure"
|
||||||
|
traefik.http.routers.histoiredunpied-redirect-www-https.tls.certResolver: "letsencrypt"
|
||||||
|
traefik.http.routers.histoiredunpied-redirect-www-https.middlewares: "redirect-www@docker"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
external:
|
external:
|
||||||
|
|
Loading…
Reference in New Issue