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 @@ -60,6 +60,9 @@ services:
60
60
- " --entrypoints.web.address=:80"
61
61
# Define the secure (HTTPS) entry point on port 443
62
62
- " --entrypoints.websecure.address=:443"
63
+ # HTTP -> HTTPS redirect at entrypoint level
64
+ - " --entrypoints.web.http.redirections.entrypoint.to=websecure"
65
+ - " --entrypoints.web.http.redirections.entrypoint.scheme=https"
63
66
# Define the SQL entry point on port 1433
64
67
- " --entryPoints.sql.address=:1433"
65
68
# Enable the Docker provider to detect containers and their labels
@@ -114,9 +117,4 @@ services:
114
117
- " traefik.http.services.dashboard.loadbalancer.server.port=8080"
115
118
# Pass the original Host header to the backend
116
119
- " traefik.http.services.dashboard.loadbalancer.passhostheader=true"
117
- # HTTP -> HTTPS redirect for all hosts
118
- - " traefik.http.routers.http-catchall.rule=HostRegexp(`{host:.+}`)"
119
- - " traefik.http.routers.http-catchall.entrypoints=web"
120
- - " traefik.http.routers.http-catchall.middlewares=redirect-to-https"
121
- - " traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
122
120
restart : unless-stopped
You can’t perform that action at this time.
0 commit comments