added reverse proxy
This commit is contained in:
parent
afd7fd7686
commit
246b1990ca
57 changed files with 4174 additions and 4139 deletions
17
Caddyfile
Normal file
17
Caddyfile
Normal 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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue