Fix https redirect
This commit is contained in:
parent
cf34e31eb4
commit
a9824b701b
|
@ -16,7 +16,11 @@ services:
|
||||||
#- "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
|
#- "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
|
||||||
- "--certificatesresolvers.myresolver.acme.email=marvin.sextro@gmail.com"
|
- "--certificatesresolvers.myresolver.acme.email=marvin.sextro@gmail.com"
|
||||||
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
|
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
|
||||||
|
- "--entrypoints.web.http.redirections.entryPoint.to=websecure"
|
||||||
|
- "--entrypoints.web.http.redirections.entryPoint.scheme=https"
|
||||||
|
- "--entrypoints.web.http.redirections.entrypoint.permanent=true"
|
||||||
ports:
|
ports:
|
||||||
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -28,7 +32,6 @@ services:
|
||||||
restart: "unless-stopped"
|
restart: "unless-stopped"
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- API_URL=https://api.covidpass.marvinsextro.de/covid.pkpass
|
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
labels:
|
labels:
|
||||||
|
@ -36,10 +39,6 @@ services:
|
||||||
- "traefik.http.routers.covidpass-api.rule=Host(`api.covidpass.marvinsextro.de`)"
|
- "traefik.http.routers.covidpass-api.rule=Host(`api.covidpass.marvinsextro.de`)"
|
||||||
- "traefik.http.routers.covidpass-api.entrypoints=websecure"
|
- "traefik.http.routers.covidpass-api.entrypoints=websecure"
|
||||||
- "traefik.http.routers.covidpass-api.tls.certresolver=myresolver"
|
- "traefik.http.routers.covidpass-api.tls.certresolver=myresolver"
|
||||||
- "traefik.http.routers.covidpass-api.middlewares=covidpass-api-https-only"
|
|
||||||
- "traefik.http.middlewares.covidpass-api-https-only.redirectscheme.scheme=https"
|
|
||||||
- "traefik.http.middlewares.covidpass-api-https-only.redirectscheme.permanent=true"
|
|
||||||
- "traefik.http.middlewares.covidpass-api-https-only.redirectscheme.port=443"
|
|
||||||
secrets:
|
secrets:
|
||||||
- env
|
- env
|
||||||
|
|
||||||
|
@ -55,10 +54,6 @@ services:
|
||||||
- "traefik.http.routers.covidpass.rule=Host(`covidpass.marvinsextro.de`)"
|
- "traefik.http.routers.covidpass.rule=Host(`covidpass.marvinsextro.de`)"
|
||||||
- "traefik.http.routers.covidpass.entrypoints=websecure"
|
- "traefik.http.routers.covidpass.entrypoints=websecure"
|
||||||
- "traefik.http.routers.covidpass.tls.certresolver=myresolver"
|
- "traefik.http.routers.covidpass.tls.certresolver=myresolver"
|
||||||
- "traefik.http.routers.covidpass.middlewares=covidpass-https-only"
|
|
||||||
- "traefik.http.middlewares.covidpass-https-only.redirectscheme.scheme=https"
|
|
||||||
- "traefik.http.middlewares.covidpass-https-only.redirectscheme.permanent=true"
|
|
||||||
- "traefik.http.middlewares.covidpass-https-only.redirectscheme.port=443"
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- covidpass-api
|
- covidpass-api
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue