remove https

This commit is contained in:
holzi1005 2024-12-07 22:36:59 +01:00
parent 9d6fea345a
commit 7ebde3f4f3

View file

@ -6,29 +6,29 @@ services:
command:
#- "--log.level=DEBUG"
- "--api.insecure=false"
# - "--api.insecure=false"
- "--providers.docker=true"
#- "--api.dashboard=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.unsecure.address=:80"
- "--entrypoints.web.address=:443"
# Global HTTP -> HTTPS
- "--entrypoints.unsecure.http.redirections.entryPoint.to=web"
- "--entrypoints.unsecure.http.redirections.entryPoint.scheme=https"
# Global HTTPS
# - "--entrypoints.web.address=:443"
# - "--entrypoints.unsecure.http.redirections.entryPoint.to=web"
# - "--entrypoints.unsecure.http.redirections.entryPoint.scheme=https"
# SSL configuration
- "--certificatesresolvers.letsencrypt.acme.httpchallenge=true"
- "--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=unsecure"
- "--certificatesresolvers.letsencrypt.acme.email=${registerEmailAdress}"
- "--certificatesresolvers.letsencrypt.acme.storage=/letsencrypt/acme.json"
# - "--certificatesresolvers.letsencrypt.acme.httpchallenge=true"
# - "--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=unsecure"
# - "--certificatesresolvers.letsencrypt.acme.email=${registerEmailAdress}"
# - "--certificatesresolvers.letsencrypt.acme.storage=/letsencrypt/acme.json"
labels:
- "traefik.enable=true"
- "traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)"
- "traefik.http.routers.http-catchall.entrypoints=unsecure"
- "traefik.http.routers.http-catchall.middlewares=redirect-to-https@docker"
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
# - "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
- "traefik.http.routers.traefik-odc.rule=Host(`traefik.<clientUrl>`)"
- "traefik.http.routers.traefik-odc.entrypoints=web"