On a distribution other than Ubuntu, or to set everything up yourself, follow the steps the Ubuntu setup script runs. You need Node.js 26.12.1 or later installed as /usr/bin/node. Before you start, read what every deployment needs.
1. User and folders
sudo useradd --system --home /opt/desk --shell /usr/sbin/nologin desksudo mkdir -p /opt/desk /var/lib/desk/data/{public,private} /etc/desksudo chown -R desk: /opt/desk /var/lib/desk2. The app
sudo -u desk git clone https://github.com/modelriver/desk.git /opt/deskcd /opt/desk && sudo -u desk sh -c 'npm ci && npm run build'3. Settings
sudo cp deploy/env.example /etc/desk/env && sudo chmod 600 /etc/desk/envsudoedit /etc/desk/envSet at least:
| Variable | Value |
|---|---|
MODELRIVER_API_KEY | Your project API key |
DATA_DIR | /var/lib/desk/data |
DATABASE_PATH | /var/lib/desk/desk.db |
NODE_ENV | production |
DESK_SECRET_KEY | The output of openssl rand -base64 32 |
DESK_IDENTITY_SECRET | The output of openssl rand -base64 48 |
APP_URL | Your Desk's address, like https://support.acme.com |
TRUST_PROXY_HOPS | The number of proxies in front of Desk: 1 for nginx alone |
4. The first admin
sudo /opt/desk/deploy/create-admin.sh5. The service
sudo cp deploy/desk.service /etc/systemd/system/sudo systemctl daemon-reload && sudo systemctl enable --now deskDesk listens on 127.0.0.1:3000.
6. HTTPS
Put nginx or Caddy in front for HTTPS and proxy to 127.0.0.1:3000. With Caddy, the whole config is:
support.acme.com { reverse_proxy 127.0.0.1:3000}TRUST_PROXY_HOPS must match the number of proxies that add to X-Forwarded-For (Cloudflare in front of nginx is 2), so rate limits see real visitor addresses. If your proxy puts the address in its own header, set CLIENT_IP_HEADER to that header instead, for example cf-connecting-ip.
Set up email
Recommended. Raising and answering tickets, email verification for account lookups, and team notifications all need email (what changes without it). Use Resend, Postmark or Amazon SES, with EMAIL_FROM on a domain the provider has verified and SUPPORT_REPLY_TO set to a mailbox your team reads.
Add the settings to /etc/desk/env with sudoedit /etc/desk/env:
EMAIL_PROVIDER=resendRESEND_API_KEY=re_…EMAIL_FROM="Acme Support <[email protected]>"SUPPORT_REPLY_TO=support@acme.comThen restart: sudo systemctl restart desk.
Then check it with Dashboard → Settings → Send a test email.
Running it
- Logs:
journalctl -u desk -f. - Change settings:
sudoedit /etc/desk/env, thensudo systemctl restart desk. - Back up:
/var/lib/desk. - Update:
cd /opt/desksudo -u desk sh -c 'git pull && npm ci && npm run build'sudo systemctl restart deskKeep your data folder in its own repository if you like, but never commit /etc/desk/env: it holds your API key and secrets.