Deployment
Covers single-host and split deployments, plus reverse proxy and probe configuration.
Single host
- Build artifacts:
bash
./service.sh buildConfigure
.envwithAPP_ROLE=all, database and Redis settings.Run under systemd using the templates in
deploy/systemd/.
Split deployment
Start web and worker as separate services pointing to the same database and Redis. See Runtime roles for role injection.
Reverse proxy
deploy/nginx/ provides location templates. Key points:
- Serve static assets and API on the same origin, so no CORS setup is needed
- Restrict source networks for
/healthz,/readyzand/metrics - Configure
SECURITY_METRICS_TOKENorSECURITY_METRICS_ALLOWED_CIDRSfor/metrics
Probes
| Probe | Path | Meaning |
|---|---|---|
| Liveness | /healthz | Process is running |
| Readiness | /readyz | Database and Redis are available |
Docs site
The docs site is an independent static service. Build output lands in docs-site/.vitepress/dist/:
bash
cd docs-site
pnpm install
pnpm build
pnpm previewThe site is served under /docs/. Use Nginx or any static host and point the root to the build output.
