Added shop and checkout to the CMS
Checkout is done with stripe Added reservation system
This commit is contained in:
parent
09e54033dd
commit
702d99b9ed
42 changed files with 3332 additions and 21 deletions
22
Caddyfile
22
Caddyfile
|
|
@ -1,17 +1,35 @@
|
|||
# Reverse proxy — single port for both the SvelteKit app and PocketBase
|
||||
# Route: /api/* and /_/* → PocketBase
|
||||
# Route: /api/basket, /api/checkout/*, /api/webhooks/* → SvelteKit app (commerce endpoints)
|
||||
# /api/* and /_/* → PocketBase
|
||||
# everything else → SvelteKit app
|
||||
|
||||
:8080 {
|
||||
# SvelteKit commerce endpoints must reach the app, not PocketBase.
|
||||
# These matchers are more specific than the generic /api/* handle below.
|
||||
handle /api/basket {
|
||||
reverse_proxy app:3000
|
||||
}
|
||||
|
||||
handle /api/checkout/* {
|
||||
reverse_proxy app:3000
|
||||
}
|
||||
|
||||
handle /api/webhooks/* {
|
||||
reverse_proxy app:3000
|
||||
}
|
||||
|
||||
# PocketBase REST API (collections, records, files, health)
|
||||
handle /api/* {
|
||||
reverse_proxy pocketbase:80
|
||||
}
|
||||
|
||||
# PocketBase admin UI
|
||||
handle /_/* {
|
||||
reverse_proxy pocketbase:80
|
||||
}
|
||||
|
||||
# Public site + SSR pages
|
||||
handle {
|
||||
reverse_proxy app:3000
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue