added reverse proxy

This commit is contained in:
Jakub Dorfman 2026-06-05 15:32:23 +02:00
parent afd7fd7686
commit 246b1990ca
57 changed files with 4174 additions and 4139 deletions

17
Caddyfile Normal file
View file

@ -0,0 +1,17 @@
# Reverse proxy — single port for both the SvelteKit app and PocketBase
# Route: /api/* and /_/* → PocketBase
# everything else → SvelteKit app
:8080 {
handle /api/* {
reverse_proxy pocketbase:80
}
handle /_/* {
reverse_proxy pocketbase:80
}
handle {
reverse_proxy app:3000
}
}