feat(Vaultwarden): Ajout d'une configuration de Traefik pour redirection automatique HTTP
This commit is contained in:
parent
342d7bfa58
commit
3f2a4b78fb
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
services:
|
||||||
|
vaultwarden:
|
||||||
|
labels:
|
||||||
|
- traefik.http.routers.${TRAEFIK_ROUTER_NAME:-vaultwarden}.tls.certResolver=letsencrypt
|
||||||
|
# redirect HTTP to HTTPS
|
||||||
|
- traefik.http.routers.${TRAEFIK_ROUTER_NAME:-vaultwarden}_http.rule=Host(`${VAULTWARDEN_DOMAIN:?err}`)
|
||||||
|
- traefik.http.routers.${TRAEFIK_ROUTER_NAME:-vaultwarden}_http.entrypoints=web
|
||||||
|
- traefik.http.middlewares.${TRAEFIK_ROUTER_NAME:-vaultwarden}_redirect_https.redirectscheme.scheme=https
|
||||||
|
- traefik.http.middlewares.${TRAEFIK_ROUTER_NAME:-vaultwarden}_redirect_https.redirectscheme.permanent=true
|
||||||
|
- traefik.http.routers.${TRAEFIK_ROUTER_NAME:-vaultwarden}_http.middlewares=${TRAEFIK_ROUTER_NAME:-vaultwarden}_redirect_https
|
Loading…
Reference in New Issue