Self-hosting
Self-hosting is a first-class option, not a downgrade. There is no licence key, no subscription and no call home to us. A self-hosted instance performs every core presentation function on its own.
Requirements
- Node.js 18 or newer
- A persistent directory for user data (database and uploads)
- A reverse proxy with HTTPS for anything reachable from the internet (CloudPanel, nginx or Caddy)
- About 512 MB of RAM for a small church instance
Install
# 1. Get the code
git clone https://github.com/alexanderwasson/simple-worship-presenter
cd simple-worship-presenter
# 2. Install dependencies exactly as locked
npm ci
# 3. Configure
cp .env.example .env
# edit SESSION_SECRET and DATA_DIR
# 4. Run
npm start
Open http://localhost:3000 and complete the first-run setup described below. Every setting is listed in the configuration reference.
First run
- Open the site in a browser.
- You will be asked to create the administrator account. This is only offered while the instance has no users.
- Sign in, then add accounts for your team, or let them self-register.
What the administrator is
The administrator account is a normal account with one extra ability: changing the instance default storage quota. All accounts are isolated from each other at the data layer. See Administration.
Where your data lives
Everything an instance stores lives under a single directory, DATA_DIR:
DATA_DIR/
lumenstage-data.json # users, presentations, service plans, songs, media metadata
uploads/ # uploaded media files
- Keep
DATA_DIRoutside the release directory so updates never overwrite user data. - Back up that directory and you have backed up the instance.
- Database schema changes run automatically as numbered migrations on startup. Migrations are additive and never delete existing user data.
- If a data file cannot be read, the instance preserves a copy named
*.corrupt-<timestamp>rather than overwriting it.
Deploying with Docker
# build and start
docker compose up -d --build
# the data volume persists across upgrades
docker compose down && docker compose up -d --build
The included docker-compose.yml mounts a named volume at the data directory and exposes a health check at /api/health.
Health checks
GET /api/health is public and returns the instance name, version, schema version and uptime. Use it for load balancer and monitoring checks.
curl https://your-instance.example/api/health
Choosing how to deploy
| Method | Good for | Notes |
|---|---|---|
| CloudPanel | Church servers already managed with CloudPanel | Full runbook in CloudPanel deployment, including what to select in the panel. |
| pm2 | Bare VPS with a Node runtime | npm install -g pm2 && pm2 start ecosystem.config.js && pm2 save. The included config runs the app on port 3002 in production mode. |
| Docker | Repeatable installs and easy rollbacks | Data volume persists across upgrades; health check included. |
One process, deliberately
The JSON data store is single-process. Do not cluster or run multiple instances against the same DATA_DIR.
Security posture
- Passwords are hashed with bcrypt (cost 12); plaintext passwords are never stored.
- Sessions use signed,
HttpOnly,SameSitecookies;Securein production. - Every protected request is authorised server-side and scoped to the account.
- Rate limits apply to authentication and write endpoints.
- Uploads are validated by file content (magic bytes), not just extension.
- Source, data and dependency directories are never served over HTTP.
- Slide text is escaped before rendering to prevent stored XSS.
Set NODE_ENV=production to require HTTPS cookies and reject default secrets, and TRUST_PROXY=1 behind CloudPanel or nginx. Browser support is the latest Chrome, Edge, Firefox and Safari.
Next steps
- CloudPanel deployment — including which site type to select.
- Configuration reference — every environment variable.
- Administration — accounts, quotas, backups and upgrades.
- Troubleshooting — the deployment mistakes that bite.