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
- 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>
43 lines
607 B
Caddyfile
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
|
|
}
|