Skip to content

Deployment ​

Covers single-host and split deployments, plus reverse proxy and probe configuration.

Single host ​

  1. Build artifacts:
bash
./service.sh build
  1. Configure .env with APP_ROLE=all, database and Redis settings.

  2. 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, /readyz and /metrics
  • Configure SECURITY_METRICS_TOKEN or SECURITY_METRICS_ALLOWED_CIDRS for /metrics

Probes ​

ProbePathMeaning
Liveness/healthzProcess is running
Readiness/readyzDatabase 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 preview

The site is served under /docs/. Use Nginx or any static host and point the root to the build output.

Next steps ​