fix: remove path stripping from API proxy configuration
Change handle_path to handle in Caddyfile to preserve /api prefix when proxying requests to backend service.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user