feat(deploy): terminate TLS at traefik for the gateway host via Let's Encrypt
api.marketplace.vector.apexfusion.org is no longer Cloudflare-proxied, so traefik now terminates TLS itself: a websecure router with the letsencrypt ACME resolver, and the :80 router demoted to a permanent HTTPS redirect. Other hosts on the box stay Cloudflare-terminated on :80. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -59,8 +59,18 @@ services:
|
|||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.docker.network=traefik-net"
|
- "traefik.docker.network=traefik-net"
|
||||||
|
# This host is NOT Cloudflare-proxied: traefik terminates TLS itself with
|
||||||
|
# a Let's Encrypt cert (resolver defined in /root/traefik/traefik.yml on
|
||||||
|
# the box). The :80 router only redirects; ACME HTTP-01 challenges are
|
||||||
|
# answered by traefik before the redirect applies.
|
||||||
- "traefik.http.routers.mp-gateway-mainnet.entrypoints=web"
|
- "traefik.http.routers.mp-gateway-mainnet.entrypoints=web"
|
||||||
- "traefik.http.routers.mp-gateway-mainnet.rule=Host(`api.marketplace.vector.apexfusion.org`)"
|
- "traefik.http.routers.mp-gateway-mainnet.rule=Host(`api.marketplace.vector.apexfusion.org`)"
|
||||||
|
- "traefik.http.routers.mp-gateway-mainnet.middlewares=mp-gateway-mainnet-https"
|
||||||
|
- "traefik.http.middlewares.mp-gateway-mainnet-https.redirectscheme.scheme=https"
|
||||||
|
- "traefik.http.middlewares.mp-gateway-mainnet-https.redirectscheme.permanent=true"
|
||||||
|
- "traefik.http.routers.mp-gateway-mainnet-tls.entrypoints=websecure"
|
||||||
|
- "traefik.http.routers.mp-gateway-mainnet-tls.rule=Host(`api.marketplace.vector.apexfusion.org`)"
|
||||||
|
- "traefik.http.routers.mp-gateway-mainnet-tls.tls.certresolver=letsencrypt"
|
||||||
- "traefik.http.services.mp-gateway-mainnet.loadbalancer.server.port=8080"
|
- "traefik.http.services.mp-gateway-mainnet.loadbalancer.server.port=8080"
|
||||||
logging:
|
logging:
|
||||||
driver: json-file
|
driver: json-file
|
||||||
|
|||||||
Reference in New Issue
Block a user