feat: update API base URL handling and improve Caddy configuration for Flutter app
This commit is contained in:
+9
-2
@@ -1,9 +1,16 @@
|
||||
:{$PORT:5000} {
|
||||
root * /usr/share/caddy
|
||||
file_server
|
||||
|
||||
# Proxy API calls to backend service on the internal Docker network.
|
||||
handle /api/* {
|
||||
reverse_proxy recipe-api:8080
|
||||
}
|
||||
|
||||
# SPA-routing – returnera alltid index.html för okända paths
|
||||
try_files {path} /index.html
|
||||
handle {
|
||||
try_files {path} /index.html
|
||||
file_server
|
||||
}
|
||||
|
||||
encode gzip
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user