Self-host
Run Pages CMS on your own infrastructure.
What you need
- PostgreSQL,
- a public HTTPS URL,
- a GitHub App,
- Pages CMS environment variables.
Minimum checklist
- Build and run the app.
- Set required environment variables.
- Set
BASE_URLto the final public URL. - Configure the GitHub App.
- Run migrations.
- Verify webhook delivery.
Build and run
npm install
npm run build
npm run start
Run migrations before serving traffic:
npm run db:migrate
Reverse proxy and HTTPS
Use a stable public HTTPS URL in front of the app.
Typical setup:
- Nginx or Caddy as reverse proxy,
- TLS at the proxy or platform edge,
- the app behind it on an internal port.
GitHub App URLs
Use:
- User authorization callback URL:
<BASE_URL>/api/auth/callback/github - Webhook URL:
<BASE_URL>/api/webhook/github - Setup URL:
<BASE_URL>/
For the full app setup, see GitHub App.
Operations
Plan for:
- environment variable management,
- database backups,
- logging,
- process restarts,
- deploy windows or rolling updates.