Skip to content

Commit 966e5cf

Browse files
authored
Jira with Let's Encrypt Using Docker Compose
1 parent 2ed97bb commit 966e5cf

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

jira-traefik-letsencrypt-docker-compose.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)