meldestelle/config/docker/caddy/web-app/Caddyfile
Stefan Mogeritsch b156d2eb6c
All checks were successful
Build and Publish Docker Images / build-and-push (., backend/infrastructure/gateway/Dockerfile, api-gateway, api-gateway) (push) Successful in 7m1s
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 1m48s
config: refine Caddyfile formatting and add new log screenshot
- Improved readability and structure of `Caddyfile` by adjusting indentation and comments.
- Added production log screenshot (`prod-docker-log-web-app_2026-03-13_12-57.png`) for documentation.

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

41 lines
652 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
}
# API Proxy (has priority)
handle /api/* {
reverse_proxy api-gateway:8081
}
# Health Check
handle /health {
respond "healthy" 200
}
# Serve static files if they exist, otherwise serve index.html (SPA)
file_server
try_files {path} /index.html
}