2026-08-25 11:42:24 +02:00
|
|
|
{
|
|
|
|
|
email {$ACME_EMAIL}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
(security_headers) {
|
|
|
|
|
header {
|
|
|
|
|
Strict-Transport-Security "max-age=31536000; includeSubDomains"
|
|
|
|
|
X-Content-Type-Options "nosniff"
|
|
|
|
|
X-Frame-Options "SAMEORIGIN"
|
|
|
|
|
Referrer-Policy "strict-origin-when-cross-origin"
|
|
|
|
|
-Server
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{$PUBLIC_DOMAIN} {
|
|
|
|
|
import security_headers
|
|
|
|
|
encode zstd gzip
|
|
|
|
|
|
2026-09-11 11:25:14 +02:00
|
|
|
# /admin is a vanity redirect to /_/, PocketBase's own fixed dashboard
|
|
|
|
|
# route — handled by Nitro (frontend/server/routes/admin.get.ts), not
|
|
|
|
|
# here, so it also works in dev where Caddy isn't in the stack.
|
|
|
|
|
|
|
|
|
|
# PocketBase's admin UI (/_/) and its own REST/file API (/api/*) both
|
|
|
|
|
# reference themselves with root-absolute paths, so they must be
|
|
|
|
|
# reachable unprefixed at the domain root — a path like /admin/api/...
|
|
|
|
|
# with a stripped prefix would break the dashboard's own asset and API
|
|
|
|
|
# calls. This is why the frontend's Nitro endpoints live under
|
|
|
|
|
# /content/*, not /api/*: /api is reserved for PocketBase here.
|
|
|
|
|
@pocketbase path /_/* /api/*
|
|
|
|
|
handle @pocketbase {
|
|
|
|
|
# Cover images and admin uploads pass through here too.
|
2026-08-25 19:49:37 +02:00
|
|
|
request_body {
|
|
|
|
|
max_size 100MB
|
|
|
|
|
}
|
2026-09-11 11:25:14 +02:00
|
|
|
reverse_proxy pocketbase:8090
|
2026-08-25 19:49:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
handle {
|
|
|
|
|
reverse_proxy frontend:3000
|
2026-08-25 11:42:24 +02:00
|
|
|
}
|
|
|
|
|
}
|