config: enhance SPA routing in Caddyfile and add new production logs screenshot
Build and Publish Docker Images / build-and-push (., backend/infrastructure/gateway/Dockerfile, api-gateway, api-gateway) (push) Successful in 6m54s
Build and Publish Docker Images / build-and-push (., backend/services/ping/Dockerfile, ping-service, ping-service) (push) Successful in 7m4s
Build and Publish Docker Images / build-and-push (., config/docker/caddy/web-app/Dockerfile, web-app, web-app) (push) Successful in 1m51s
Build and Publish Docker Images / build-and-push (., config/docker/keycloak/Dockerfile, keycloak, keycloak) (push) Successful in 1m43s

- Refined SPA fallback configuration in `Caddyfile` using `try_files` for improved stability.
- Added production logs screenshot (`prod-docker-logs-web-app_2026-03-12_17-10.png`) to document application state.

Signed-off-by: Stefan Mogeritsch <stefan.mo.co@gmail.com>
This commit is contained in:
2026-03-12 17:13:50 +01:00
parent 4d10b971e5
commit dbf8985d8b
2 changed files with 8 additions and 7 deletions
+8 -7
View File
@@ -57,11 +57,12 @@
respond "healthy" 200 respond "healthy" 200
} }
# 3. Static Files & SPA Fallback (NEUE, ROBUSTERE KONFIGURATION) # 3. Static Files & SPA Fallback (Stable Config)
# Serve static files directly. handle {
# For any path that is NOT a file and NOT a directory, rewrite to /index.html. # Serve static files if they exist
# This is a more explicit SPA-fallback than try_files for some proxies. file_server
@not_file `not file`
rewrite @not_file /index.html # SPA Routing: Fallback to index.html for non-existent files
file_server try_files {path} /index.html
}
} }
Binary file not shown.

After

Width:  |  Height:  |  Size: 259 KiB