fix: remove path stripping from API proxy configuration
Some checks failed
CI / backend (push) Successful in 21s
CI / frontend (push) Successful in 41s
CI / docker (push) Failing after 45s

Change handle_path to handle in Caddyfile to preserve /api prefix when proxying requests to backend service.
This commit is contained in:
2026-06-04 10:52:12 +02:00
parent 10a06791db
commit 15d47d49bf

View File

@@ -9,7 +9,7 @@
Content-Security-Policy "default-src 'self'; img-src 'self' data: https://images.openfoodfacts.org; connect-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; object-src 'none'; base-uri 'self'; frame-ancestors 'none'; form-action 'self'; upgrade-insecure-requests"
}
handle_path /api/* {
handle /api/* {
reverse_proxy backend:8000
}