feat: update API base URL handling and improve Caddy configuration for Flutter app

This commit is contained in:
Nils-Johan Gynther
2026-04-21 21:59:47 +02:00
parent ac5891394e
commit 39384a0e74
4 changed files with 19 additions and 10 deletions
+9 -2
View File
@@ -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
}