meldestelle/config/docker/caddy/web-app/Caddyfile
Stefan Mogeritsch 9c2d34cc82
All checks were successful
Build and Publish Docker Images / build-and-push (., backend/infrastructure/gateway/Dockerfile, api-gateway, api-gateway) (push) Successful in 7m33s
Build and Publish Docker Images / build-and-push (., backend/services/ping/Dockerfile, ping-service, ping-service) (push) Successful in 7m3s
Build and Publish Docker Images / build-and-push (., config/docker/caddy/web-app/Dockerfile, web-app, web-app) (push) Successful in 1m49s
Build and Publish Docker Images / build-and-push (., config/docker/keycloak/Dockerfile, keycloak, keycloak) (push) Successful in 1m54s
config: update Caddyfile structure and add new documentation screenshots
- Simplified and refined the `Caddyfile` configuration for improved readability.
- Added screenshots to `docs/ScreenShots` documenting proxy settings and production logs.

Signed-off-by: Stefan Mogeritsch <stefan.mo.co@gmail.com>
2026-03-13 12:29:49 +01:00

43 lines
607 B
Caddyfile

{
# Global options
auto_https off
servers {
metrics
}
}
:4000 {
# Root directory
root * /usr/share/caddy
# Logging
log {
output stdout
format json
}
# Compression
encode gzip zstd
# Configuration Template
templates {
mime application/json
}
# Static Assets
file_server
# API Proxy
handle /api/* {
reverse_proxy api-gateway:8081
}
# Health
handle /health {
respond "healthy" 200
}
# SPA Routing (Last Resort)
try_files {path} /index.html
}