File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,9 @@ services:
102102 - " --entrypoints.web.address=:80"
103103 # Define the secure (HTTPS) entry point on port 443
104104 - " --entrypoints.websecure.address=:443"
105+ # HTTP -> HTTPS redirect at entrypoint level
106+ - " --entrypoints.web.http.redirections.entrypoint.to=websecure"
107+ - " --entrypoints.web.http.redirections.entrypoint.scheme=https"
105108 # Enable the Docker provider to detect containers and their labels
106109 - " --providers.docker=true"
107110 # Point Traefik to the Docker socket
@@ -153,11 +156,6 @@ services:
153156 - " traefik.http.services.dashboard.loadbalancer.server.port=8080"
154157 # Pass the original Host header to the backend
155158 - " traefik.http.services.dashboard.loadbalancer.passhostheader=true"
156- # HTTP -> HTTPS redirect for all hosts
157- - " traefik.http.routers.http-catchall.rule=HostRegexp(`{host:.+}`)"
158- - " traefik.http.routers.http-catchall.entrypoints=web"
159- - " traefik.http.routers.http-catchall.middlewares=redirect-to-https"
160- - " traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
161159 restart : unless-stopped
162160
163161 backups :
You can’t perform that action at this time.
0 commit comments