fix: add HTTP→HTTPS redirect labels for Traefik v3
This commit is contained in:
@@ -21,6 +21,7 @@ services:
|
||||
- dokploy-network
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
# HTTPS router
|
||||
- "traefik.http.routers.ngotoolkit.rule=Host(`ngotoolkit.quikcue.com`) || Host(`ngotoolkitlab.com`) || Host(`www.ngotoolkitlab.com`) || Host(`ngotoolkitlab.org`) || Host(`www.ngotoolkitlab.org`)"
|
||||
- "traefik.http.routers.ngotoolkit.entrypoints=websecure"
|
||||
- "traefik.http.routers.ngotoolkit.tls=true"
|
||||
@@ -28,6 +29,12 @@ services:
|
||||
- "traefik.http.routers.ngotoolkit.tls.domains[0].main=ngotoolkitlab.com"
|
||||
- "traefik.http.routers.ngotoolkit.tls.domains[0].sans=www.ngotoolkitlab.com,ngotoolkitlab.org,www.ngotoolkitlab.org,ngotoolkit.quikcue.com"
|
||||
- "traefik.http.services.ngotoolkit.loadbalancer.server.port=3000"
|
||||
# HTTP router — redirect to HTTPS
|
||||
- "traefik.http.routers.ngotoolkit-http.rule=Host(`ngotoolkit.quikcue.com`) || Host(`ngotoolkitlab.com`) || Host(`www.ngotoolkitlab.com`) || Host(`ngotoolkitlab.org`) || Host(`www.ngotoolkitlab.org`)"
|
||||
- "traefik.http.routers.ngotoolkit-http.entrypoints=web"
|
||||
- "traefik.http.routers.ngotoolkit-http.middlewares=ngotoolkit-https-redirect"
|
||||
- "traefik.http.middlewares.ngotoolkit-https-redirect.redirectscheme.scheme=https"
|
||||
- "traefik.http.middlewares.ngotoolkit-https-redirect.redirectscheme.permanent=true"
|
||||
|
||||
networks:
|
||||
dokploy-network:
|
||||
|
||||
Reference in New Issue
Block a user