fix: Permanent redirect to https

This commit is contained in:
William 2022-12-30 09:42:10 +01:00
parent 83f99858ee
commit 414eb2e584
2 changed files with 4 additions and 2 deletions

View File

@ -20,7 +20,7 @@ services:
- "traefik.http.services.grafana.loadbalancer.server.port=3000"
- "traefik.http.routers.grafana.entrypoints=http"
- "traefik.http.routers.grafana-http.middlewares=https-redirect@docker"
- "traefik.http.routers.grafana.middlewares=https-redirect@docker"
- "traefik.http.routers.grafana.rule=Host(`${GRAFANA_HOST}`)"
- "traefik.http.routers.grafana-https.entrypoints=https"
@ -49,7 +49,7 @@ services:
- "traefik.http.services.prometheus.loadbalancer.server.port=9090"
- "traefik.http.routers.prometheus.entrypoints=http"
- "traefik.http.routers.prometheus-http.middlewares=https-redirect@docker"
- "traefik.http.routers.prometheus.middlewares=https-redirect@docker"
- "traefik.http.routers.prometheus.rule=Host(`${PROMETHEUS_HOST}`)"
- "traefik.http.routers.prometheus-https.entrypoints=https"

View File

@ -19,5 +19,7 @@ services:
- './acme.json:/acme.json'
- '/var/run/docker.sock:/var/run/docker.sock:ro'
labels:
- "traefik.enable=true"
- "traefik.http.middlewares.https-redirect.redirectscheme.scheme=https"
- "traefik.http.middlewares.https-redirect.redirectscheme.permanent=true"