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 @@ -95,6 +95,9 @@ services:
95
95
- " --entrypoints.web.address=:80"
96
96
# Define the secure (HTTPS) entry point on port 443
97
97
- " --entrypoints.websecure.address=:443"
98
+ # HTTP -> HTTPS redirect at entrypoint level
99
+ - " --entrypoints.web.http.redirections.entrypoint.to=websecure"
100
+ - " --entrypoints.web.http.redirections.entrypoint.scheme=https"
98
101
# Enable the Docker provider to detect containers and their labels
99
102
- " --providers.docker=true"
100
103
# Point Traefik to the Docker socket
@@ -146,11 +149,6 @@ services:
146
149
- " traefik.http.services.dashboard.loadbalancer.server.port=8080"
147
150
# Pass the original Host header to the backend
148
151
- " traefik.http.services.dashboard.loadbalancer.passhostheader=true"
149
- # HTTP -> HTTPS redirect for all hosts
150
- - " traefik.http.routers.http-catchall.rule=HostRegexp(`{host:.+}`)"
151
- - " traefik.http.routers.http-catchall.entrypoints=web"
152
- - " traefik.http.routers.http-catchall.middlewares=redirect-to-https"
153
- - " traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
154
152
restart : unless-stopped
155
153
156
154
backups :
You can’t perform that action at this time.
0 commit comments