docs: update Caddyfile and add browser console error log for debugging
Build and Publish Docker Images / build-and-push (., backend/infrastructure/gateway/Dockerfile, api-gateway, api-gateway) (push) Successful in 7m21s
Build and Publish Docker Images / build-and-push (., backend/services/ping/Dockerfile, ping-service, ping-service) (push) Successful in 7m14s
Build and Publish Docker Images / build-and-push (., config/docker/caddy/web-app/Dockerfile, web-app, web-app) (push) Successful in 1m45s
Build and Publish Docker Images / build-and-push (., config/docker/keycloak/Dockerfile, keycloak, keycloak) (push) Successful in 1m48s
Build and Publish Docker Images / build-and-push (., backend/infrastructure/gateway/Dockerfile, api-gateway, api-gateway) (push) Successful in 7m21s
Build and Publish Docker Images / build-and-push (., backend/services/ping/Dockerfile, ping-service, ping-service) (push) Successful in 7m14s
Build and Publish Docker Images / build-and-push (., config/docker/caddy/web-app/Dockerfile, web-app, web-app) (push) Successful in 1m45s
Build and Publish Docker Images / build-and-push (., config/docker/keycloak/Dockerfile, keycloak, keycloak) (push) Successful in 1m48s
- Improved SPA fallback configuration in `Caddyfile` for better proxy compatibility. - Uploaded 2026-03-12 browser console error log to document HTTPS and mixed-content issues. Signed-off-by: Stefan Mogeritsch <stefan.mo.co@gmail.com>
This commit is contained in:
@@ -57,12 +57,11 @@
|
||||
respond "healthy" 200
|
||||
}
|
||||
|
||||
# 3. Static Files & SPA Fallback (Priority 2)
|
||||
handle {
|
||||
# Serve static files if they exist
|
||||
file_server
|
||||
|
||||
# SPA Routing: Fallback to index.html for non-existent files
|
||||
try_files {path} /index.html
|
||||
}
|
||||
# 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user