Fix: use web entrypoint for Cloudflare tunnel routing
Cloudflare tunnel sends HTTP to port 80 (Traefik web entrypoint), not HTTPS to 443. TLS is terminated at Cloudflare edge. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
039f75fd94
commit
4181ef7561
|
|
@ -7,17 +7,10 @@ services:
|
|||
- traefik-public
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
# HTTP router (for Cloudflare tunnel which sends HTTP to port 80)
|
||||
- "traefik.http.routers.elle-o-elle.rule=Host(`elle-o-elle.lol`) || Host(`www.elle-o-elle.lol`)"
|
||||
- "traefik.http.routers.elle-o-elle.entrypoints=websecure"
|
||||
- "traefik.http.routers.elle-o-elle.tls.certresolver=cloudflare"
|
||||
- "traefik.http.routers.elle-o-elle.tls.domains[0].main=elle-o-elle.lol"
|
||||
- "traefik.http.routers.elle-o-elle.tls.domains[0].sans=*.elle-o-elle.lol"
|
||||
- "traefik.http.routers.elle-o-elle.entrypoints=web"
|
||||
- "traefik.http.services.elle-o-elle.loadbalancer.server.port=80"
|
||||
# Redirect www to apex
|
||||
- "traefik.http.middlewares.elle-www-redirect.redirectregex.regex=^https://www\\.elle-o-elle\\.lol/(.*)"
|
||||
- "traefik.http.middlewares.elle-www-redirect.redirectregex.replacement=https://elle-o-elle.lol/$${1}"
|
||||
- "traefik.http.middlewares.elle-www-redirect.redirectregex.permanent=true"
|
||||
- "traefik.http.routers.elle-o-elle.middlewares=elle-www-redirect"
|
||||
|
||||
networks:
|
||||
traefik-public:
|
||||
|
|
|
|||
Loading…
Reference in New Issue