config: enhance SPA routing in Caddyfile and add new production logs screenshot
All checks were successful
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
All checks were successful
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:
parent
4d10b971e5
commit
dbf8985d8b
|
|
@ -57,11 +57,12 @@
|
|||
respond "healthy" 200
|
||||
}
|
||||
|
||||
# 3. Static Files & SPA Fallback (NEUE, ROBUSTERE KONFIGURATION)
|
||||
# Serve static files directly.
|
||||
# For any path that is NOT a file and NOT a directory, rewrite to /index.html.
|
||||
# This is a more explicit SPA-fallback than try_files for some proxies.
|
||||
@not_file `not file`
|
||||
rewrite @not_file /index.html
|
||||
file_server
|
||||
# 3. Static Files & SPA Fallback (Stable Config)
|
||||
handle {
|
||||
# Serve static files if they exist
|
||||
file_server
|
||||
|
||||
# SPA Routing: Fallback to index.html for non-existent files
|
||||
try_files {path} /index.html
|
||||
}
|
||||
}
|
||||
|
|
|
|||
BIN
docs/ScreenShots/prod-docker-logs-web-app_2026-03-12_17-10.png
Normal file
BIN
docs/ScreenShots/prod-docker-logs-web-app_2026-03-12_17-10.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 259 KiB |
Loading…
Reference in New Issue
Block a user