fix: add Traefik health check and pass host header for CMS service
This commit is contained in:
parent
a79a3af3d5
commit
325fe9735b
@ -173,9 +173,14 @@ services:
|
|||||||
- "traefik.http.routers.cms.tls=true"
|
- "traefik.http.routers.cms.tls=true"
|
||||||
- "traefik.http.routers.cms.tls.certresolver=letsencrypt"
|
- "traefik.http.routers.cms.tls.certresolver=letsencrypt"
|
||||||
- "traefik.http.routers.cms.service=cms"
|
- "traefik.http.routers.cms.service=cms"
|
||||||
# Service with timeouts
|
# Service configuration
|
||||||
- "traefik.http.services.cms.loadbalancer.server.port=1337"
|
- "traefik.http.services.cms.loadbalancer.server.port=1337"
|
||||||
|
- "traefik.http.services.cms.loadbalancer.passhostheader=true"
|
||||||
- "traefik.http.services.cms.loadbalancer.responseForwarding.flushInterval=100ms"
|
- "traefik.http.services.cms.loadbalancer.responseForwarding.flushInterval=100ms"
|
||||||
|
# Health check for service
|
||||||
|
- "traefik.http.services.cms.loadbalancer.healthcheck.path=/_health"
|
||||||
|
- "traefik.http.services.cms.loadbalancer.healthcheck.interval=30s"
|
||||||
|
- "traefik.http.services.cms.loadbalancer.healthcheck.timeout=5s"
|
||||||
|
|
||||||
# ===========================================
|
# ===========================================
|
||||||
# FRONTEND (React)
|
# FRONTEND (React)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user