Skip to content

Commit 34d8690

Browse files
committed
fix(traefik): expose /health routes for admin dashboard monitoring (build): back
- Add rest-api-health router for /health/* endpoints - Enables admin dashboard to call /health/push, /health/redis, etc. - Required for push gateway health monitoring
1 parent ed30566 commit 34d8690

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

docker-compose.prod.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,12 @@ services:
180180
- 'traefik.http.routers.rest-api.tls.certresolver=letsencrypt'
181181
- 'traefik.http.routers.rest-api.service=rest-api'
182182
- 'traefik.http.routers.rest-api.middlewares=security-headers@file,rate-limit-api@file,retry@file'
183+
# Health routes (prodback.docs.plus/health/*) - for admin dashboard monitoring
184+
- 'traefik.http.routers.rest-api-health.rule=Host(`prodback.docs.plus`) && PathPrefix(`/health`)'
185+
- 'traefik.http.routers.rest-api-health.entrypoints=websecure'
186+
- 'traefik.http.routers.rest-api-health.tls.certresolver=letsencrypt'
187+
- 'traefik.http.routers.rest-api-health.service=rest-api'
188+
- 'traefik.http.routers.rest-api-health.middlewares=security-headers@file'
183189
- 'traefik.http.services.rest-api.loadbalancer.server.port=4000'
184190
# Health check - only route to healthy containers
185191
- 'traefik.http.services.rest-api.loadbalancer.healthcheck.path=/health'

0 commit comments

Comments
 (0)