Self-hosting
Run Sevnly with Docker, configure your domains, and back up PostgreSQL.
Most people don't need to self-host. sevnly.com is free and handles backups, Google/Outlook sync, push notifications and updates for you, and using it supports the project. Self-host if you want full control.
Sevnly is AGPL-3.0 and every feature works on your own server. Self-hosted instances have no limits by default: unlimited calendars, and the Supporter tier is off. There are no AI keys to set; Sevnly doesn't call any model.
This guide covers local development, production on a VPS with Dokploy and a remote PostgreSQL server, a simpler single-server setup, and everything in .env.
How it fits together
Browser / apps ──► web (Astro) sevnly.com
──► api (Hono) api.sevnly.com /auth /v1 /mcp /ics + jobs
content.sevnly.com attachments (same container)
──► collab (Hocuspocus) collab.sevnly.com WebSocket, one Y.Doc per calendar
docs (nginx, static) docs.sevnly.com
warp (later) SOCKS5 proxy for outgoing webhooks
│
▼ TLS, sslmode=verify-full
Remote PostgreSQL 17 (all data, including attachment bytes)- PostgreSQL is the only storage. Tasks, Yjs documents, attachments (as
bytea) and the job queue all live in it. No object storage. - The app server is stateless. You can rebuild it from Git and env without losing data.
- Attachments are served from a separate origin that ignores cookies and blocks scripts (
content.sevnly.comon the hosted service). It's a second domain on theapicontainer, so user files never run on the app's origin.
Requirements
| For | You need |
|---|---|
| Local development | Node 24, pnpm 10, Docker (for Postgres and Mailpit) |
| Native apps (optional) | Rust + Tauri 2 toolchain for desktop; Xcode for the iPhone / iPad app (apps/ios) |
| Production app server | A VPS with at least 2 GB RAM (e.g. 3 vCPU / 4 GB), Ubuntu 24.04, Dokploy (or any reverse proxy) |
| Production database | PostgreSQL 17 on a separate server (a second VPS or managed Postgres) in the same region, or the with-db profile for a small single-server setup |
| A Resend account (recommended) or any SMTP relay, for verification, magic links, invites and reminders | |
| Domains | One each for web, api, content, collab and docs |
Local development
cp .env.example .env
pnpm install
pnpm services:up # docker/docker-compose.yml: postgres :5434, mailpit :8025
pnpm db:migrate
pnpm dev # web :4800, api :8787, collab :1234Native apps, if you want them:
pnpm --filter native tauri dev # desktop
# iPhone / iPad: the native Swift app in apps/ios (needs Xcode), see PLAN.md §11.4- Postgres runs in Docker on port 5434 (5432 and 5433 are often taken):
postgres://sevnly:sevnly@localhost:5434/sevnly. To start only the database:docker compose -f docker/docker-compose.yml up -d db. - Mailpit catches every email the app sends. Open http://localhost:8025 to read verification links and magic links. The app sends to it on
smtp://localhost:1025. - Attachments are served from
http://127.0.0.1:8787. That's a different origin fromlocalhost, so dev behaves like production's separate content domain. - The defaults in
.env.examplework for local development as they are, apart fromBETTER_AUTH_SECRETandENCRYPTION_KEYS(see Generating secrets). In dev, all three database URLs can point at the same local database. - The relational tables (search) are a projection of the Yjs documents, rebuilt from each document when it's saved.
Services and ports
| Service | Local | Production | What it is |
|---|---|---|---|
web | http://localhost:4800 | sevnly.com | Astro site + the planner (at /). Pages are prerendered; only /c/:slug and /admin render on demand (Node adapter) |
api | http://localhost:8787 | api.sevnly.com | Hono: Better Auth (/auth/*), REST (/v1/*), remote MCP (/mcp), ICS feeds (/ics/*), background jobs, health (/health) |
content | http://127.0.0.1:8787 | content.sevnly.com | Second domain on the api container: signed, sandboxed attachment downloads |
collab | ws://localhost:1234 | collab.sevnly.com | Hocuspocus WebSocket server for live editing |
docs | (port 4801) | docs.sevnly.com | nginx serving the Fumadocs static export |
warp | — | none (internal SOCKS5) | Optional Cloudflare WARP sidecar for outgoing webhooks (see Webhook egress) |
db | localhost:5434 | remote server | PostgreSQL 17 |
mailpit | :8025 (UI), :1025 (SMTP) | — | Dev only |
Replace the production domains with your own. Dockerfiles for api, collab, web and docs live in docker/.
Production: VPS + Dokploy + remote PostgreSQL
1. The database server
Run PostgreSQL 17 on its own server (or use a managed Postgres) in the same region as your app VPS. It holds everything, so treat it with care.
- Disk encryption on: the provider's default, or LUKS on a self-managed server.
- TLS required. Turn on SSL in Postgres with a certificate for the hostname the app will use. The app connects with
sslmode=verify-full, which encrypts the connection and checks the certificate and hostname. Mount the server's CA certificate into the containers and pointDATABASE_CA_CERTat it. - Firewall: only the app VPS's IP may reach port 5432. A private network or a WireGuard tunnel between the two servers works too.
- Extensions: search uses
pg_trgmandunaccent. On managed Postgres, make sure both are allowed.
Roles. Use three login roles, never a superuser:
| Role | Env var | Used by | Can |
|---|---|---|---|
sevnly_app | DATABASE_URL | api and collab | Read and write data, no DDL. Only INSERT and SELECT on audit_events (the audit log is append-only) |
sevnly_migrate | MIGRATE_DATABASE_URL | The migration step only | DDL (create and alter tables) |
sevnly_retention | RETENTION_DATABASE_URL | The purge job only | Drop expired audit-log partitions |
Create the roles and the database; the grants are set by the first migration:
CREATE ROLE sevnly_app LOGIN PASSWORD '…';
CREATE ROLE sevnly_migrate LOGIN PASSWORD '…';
CREATE ROLE sevnly_retention LOGIN PASSWORD '…';
CREATE DATABASE sevnly OWNER sevnly_migrate;Connection strings look like:
DATABASE_URL=postgres://sevnly_app:…@db.example.com:5432/sevnly?sslmode=verify-full
MIGRATE_DATABASE_URL=postgres://sevnly_migrate:…@db.example.com:5432/sevnly?sslmode=verify-full
RETENTION_DATABASE_URL=postgres://sevnly_retention:…@db.example.com:5432/sevnly?sslmode=verify-full
DATABASE_CA_CERT=/path/to/db-ca.crtEach service keeps a small connection pool (about 10). If connection counts grow, add PgBouncer.
2. The app server
On a fresh Ubuntu 24.04 VPS:
- SSH keys only (turn off password login).
ufwallowing only 22, 80 and 443.unattended-upgradesfor security updates.- Install Dokploy. It brings Traefik and Let's Encrypt TLS.
3. DNS
Point these at the app VPS (use your own domain):
| Record | Service |
|---|---|
example.com | web |
docs.example.com | docs |
api.example.com | api |
content.example.com | api (second domain, attachments) |
collab.example.com | collab (WebSocket) |
4. The Dokploy project
Create a Dokploy project called sevnly and add a Docker Compose service pointing at this repository and docker/docker-compose.prod.yml. It builds three images from docker/Dockerfile (one recipe, a target per service):
| Service | Port in the container | Domain |
|---|---|---|
api | 8787 | api.example.com, and content.example.com (second domain, attachments) |
collab | 1234 | collab.example.com (WebSocket) |
web | 4321 | example.com |
Put the environment variables (below) in Dokploy's env for the compose service. Secrets stay in Dokploy, never in Git. The web image is built with your PUBLIC_WEB_URL, PUBLIC_API_URL and PUBLIC_COLLAB_URL, so rebuild it when those change.
Route docs.example.com to the docs container and set PUBLIC_DOCS_URL=https://docs.example.com before building.
Prebuilt images on GHCR come later; nothing here depends on them.
5. First start
- Migrations run automatically when the
apicontainer starts (drizzle-kit migrate, usingMIGRATE_DATABASE_URL), before the server listens. - Check
https://api.example.com/health. - Sign up with an address listed in
ADMIN_EMAILSto become the first admin (see Admin). - In Admin → Site settings → Email, use Send test email to check email delivery (Resend or SMTP).
6. Monitoring
- Dokploy's built-in metrics, and the
apicontainer's health check (/health). - Container logs (
docker compose logs api). - Admin → System shows service health and the job queue.
Without Dokploy: docker/docker-compose.prod.yml
The same compose file works on any server with Docker. From a checkout of the repository, with your settings in .env at the root:
# Postgres on another server (step 1 above):
docker compose --env-file .env -f docker/docker-compose.prod.yml up -d --build
# Or Postgres on this server too (small setups): also set POSTGRES_PASSWORD, and point
# DATABASE_URL, MIGRATE_DATABASE_URL and RETENTION_DATABASE_URL at
# postgres://sevnly:<POSTGRES_PASSWORD>@db:5432/sevnly
docker compose --env-file .env -f docker/docker-compose.prod.yml --profile with-db up -d --build-
The services listen on
127.0.0.1only (web4321, api8787, collab1234; change them withWEB_PORT,API_PORT,COLLAB_PORT). A reverse proxy in front handles TLS and the domains: Traefik (as Dokploy does), Caddy or nginx. Route each domain from the DNS table to its port, allow WebSocket upgrades forcollab, and pass the client address inX-Forwarded-For(Caddy and Traefik do by default). Sign-in rate limits are per client address; without that header every visitor shares one limit. -
A minimal Caddyfile:
example.com { reverse_proxy 127.0.0.1:4321 } api.example.com { reverse_proxy 127.0.0.1:8787 } content.example.com { reverse_proxy 127.0.0.1:8787 } collab.example.com { reverse_proxy 127.0.0.1:1234 } -
With
with-db, the database lives on the app server, so that server is no longer stateless: back it up (below) like you would a database server.
Webhook egress through Cloudflare WARP
Optionally, outgoing webhook requests can leave your server through a Cloudflare WARP tunnel instead of directly. Receivers then only see Cloudflare's IP addresses, never your server's, so webhook URLs can't be used to discover your origin. It's off by default for self-hosters (WEBHOOK_EGRESS=direct).
To turn it on:
- Pick an account. With nothing else set, the sidecar registers as a free consumer Cloudflare WARP device: no Cloudflare account needed. To use Cloudflare Zero Trust instead, create a service token (Access → Service auth), allow it to enroll devices (Settings → WARP Client → Device enrollment permissions → add a rule for the service token), and put your team name and the token in
.envasWARP_ORGANIZATION,WARP_CLIENT_IDandWARP_CLIENT_SECRET. - Start the
warpsidecar with the compose profile:docker compose --env-file .env -f docker/docker-compose.prod.yml --profile warp up -d --build. It runswarp-cliin proxy mode (docker/warp/), registers (or enrolls with the token), and exposes a SOCKS5 proxy on thewarpnetwork, which only theapicontainer joins. The registration is kept in thewarpdatavolume.docker compose … psshows it healthy once WARP is connected. On Dokploy (which runs compose without--profile), addCOMPOSE_PROFILES=warpto the env instead; without the sidecar, ICS and CalDAV fetches fail with "The outgoing proxy isn't reachable (getaddrinfo ENOTFOUND warp)". - Set
WARP_PROXY_URL(defaultsocks5://warp:40000) andWEBHOOK_EGRESS=warp. - Optionally set
USER_URL_EGRESS=warpto send ICS and CalDAV fetches the same way. Calls to Google, Microsoft and Polar APIs always go direct.
How it behaves:
- The SSRF guard still runs before the proxy: Sevnly resolves the hostname, checks the IP, then connects through SOCKS5 to that checked IP (with the original hostname for TLS and
Host), so DNS rebinding can't slip past. - Fail closed: if WARP is down, requests wait and retry instead of going out directly (a calendar keeps its last sync and is tried again on the next poll). The API checks the proxy every minute; after 15 minutes down, the addresses in
ADMIN_EMAILSget one alert per outage. - Outgoing webhooks themselves are still being built; until they ship,
WEBHOOK_EGRESS=warponly turns on the health check, andUSER_URL_EGRESS=warpcovers ICS and CalDAV fetches. - HTTPS to the receiver is still required. WARP hides your IP; it doesn't replace TLS. For confidentiality beyond TLS, users can turn on webhook payload encryption (JWE).
- WARP IPs are shared and change, so tell receivers to verify the webhook signature, not to allow-list IPs.
Environment variables
These are all the variables in .env.example, in the same sections. Values in the admin UI (Admin → Site settings) override the env defaults, except secrets: database URLs, auth secret, encryption keys, SMTP and OAuth secrets stay in env and show only as "set / not set". Variables marked secret need long random values in production.
URLs
| Variable | Default | What it does |
|---|---|---|
PUBLIC_WEB_URL | http://localhost:4800 | Public URL of web (app + site). |
BETTER_AUTH_URL | http://localhost:8787 | Public URL of api (auth, REST, MCP). |
COLLAB_URL | ws://localhost:1234 | Public WebSocket URL of collab. Use wss:// in production. |
AUTH_COOKIE_DOMAIN | (empty) | Parent domain shared by api and collab (e.g. example.com). Required when they're on separate subdomains: without it the session cookie stays on the api host and collab rejects every connection ([onAuthenticate] Error: Unauthorized). |
CONTENT_URL | http://127.0.0.1:8787 | Public URL of the attachments origin. In production, its own domain on the api container (e.g. https://content.example.com). |
Database
| Variable | Default | What it does |
|---|---|---|
DATABASE_URL | postgres://sevnly:sevnly@localhost:5434/sevnly | App connection (sevnly_app in production, with ?sslmode=verify-full). |
MIGRATE_DATABASE_URL | same as above | Role that runs migrations (sevnly_migrate). Dev can reuse DATABASE_URL. |
RETENTION_DATABASE_URL | same as above | Role the purge job uses to drop expired audit-log partitions (sevnly_retention). |
DATABASE_CA_CERT | (empty) | Path to the DB server's CA certificate, so verify-full can check it. Production only. |
Auth and encryption
| Variable | Default | What it does |
|---|---|---|
BETTER_AUTH_SECRET | change-me | Secret. Signs sessions and tokens. Change it, and keep it separate from ENCRYPTION_KEYS. |
ENCRYPTION_KEYS | (empty) | Secret. Required. AES-256-GCM keys for secrets Sevnly must read back: TOTP secrets, OAuth refresh tokens, app passwords, ICS URLs, webhook secrets. Comma-separated, newest first, so keys can be rotated. |
TURNSTILE_SITE_KEY | (empty) | Cloudflare Turnstile site key. With the secret below, sign-up, sign-in, sign-in code requests, password reset, guest suggestions and reports need the check. The browser gets the key from /v1/site, so no web rebuild. |
TURNSTILE_SECRET_KEY | (empty) | Secret. Turnstile secret, checked against Cloudflare on the server. Leave both empty to skip Turnstile: nothing is sent to Cloudflare, and guest suggestions use a built-in proof-of-work instead. Update the privacy policy if you turn it on. |
Sign-in providers (optional; leave empty to hide)
| Variable | What it does |
|---|---|
GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET (secret) | Sign in with Google. Separate from calendar sync. |
GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET (secret) | Sign in with GitHub. Also used to link GitHub accounts for contributor grants. |
DISCORD_CLIENT_ID, DISCORD_CLIENT_SECRET (secret) | Sign in with Discord (create an app in the Discord Developer Portal; redirect URI https://api.sevnly.com/auth/callback/discord, scopes identify email). |
APPLE_CLIENT_ID | Sign in with Apple: your Apple Services ID (e.g. com.sevnly.web). Required by the App Store when other social logins exist. |
APPLE_CLIENT_SECRET (secret) | The JWT generated from your Apple key. |
Sign-in methods can also be switched on or off in Admin → Site settings → Access.
| Variable | Default | What it does |
|---|---|---|
EMAIL_PROVIDER | smtp | resend (recommended in production) or smtp |
RESEND_API_KEY, RESEND_WEBHOOK_SECRET | empty | Resend API key and webhook signing secret (bounces/complaints) |
EMAIL_FROM, EMAIL_REPLY_TO | Sevnly <[email protected]>, [email protected] | Sender and reply address |
SMTP_URL | smtp://localhost:1025 | Outgoing mail. Mailpit in dev; your SMTP relay in production. Sender name and address are set in Admin → Site settings → Email. |
Calendar sync (optional; providers without keys are hidden)
| Variable | Default | What it does |
|---|---|---|
GOOGLE_CALENDAR_CLIENT_ID, GOOGLE_CALENDAR_CLIENT_SECRET (secret) | (empty) | Google Calendar sync. |
MICROSOFT_CLIENT_ID, MICROSOFT_CLIENT_SECRET (secret) | (empty) | Outlook / Microsoft 365 sync. |
MICROSOFT_TENANT | common | Microsoft Entra tenant. common allows personal and work/school accounts; set a tenant id to allow only your organization. |
iCloud, other CalDAV servers and ICS links need no keys. See Calendar sync OAuth apps.
Push notifications (Web Push)
| Variable | What it does |
|---|---|
VAPID_PUBLIC_KEY, VAPID_PRIVATE_KEY (secret) | Key pair for browser reminders. Generate once with npx web-push generate-vapid-keys. Native apps don't need it; they schedule reminders on the device. |
Attachments and limits
Defaults; admins can change them in Admin → Site settings.
| Variable | Default | What it does |
|---|---|---|
IMAGE_MAX_MB | 5 | Max image size (after the client resizes it). |
FILE_MAX_MB | 10 | Max size for documents, audio and other files. |
VIDEO_MAX_MB | 25 | Max video size. |
USER_QUOTA_MB | 200 | Attachment space per user on the free plan (Supporters: SUPPORTER_QUOTA_MB). |
Webhooks and outbound requests
| Variable | Default | What it does |
|---|---|---|
WEBHOOK_EGRESS | direct | direct or warp (through the WARP sidecar, fail closed). |
USER_URL_EGRESS | direct | Same choice for ICS and CalDAV fetches. |
WARP_PROXY_URL | socks5://warp:40000 | The WARP sidecar's SOCKS5 proxy. |
COMPOSE_PROFILES | (unset) | warp starts the sidecar where compose runs without --profile (Dokploy). |
WARP_ORGANIZATION | (empty) | Your Zero Trust team name, for the warp sidecar (compose profile warp). Empty: a free consumer WARP registration. |
WARP_CLIENT_ID | (empty) | Zero Trust service token ID the sidecar enrolls with. |
WARP_CLIENT_SECRET | (empty) | Secret. That service token's secret. |
SUPPORTER_QUOTA_MB | 2048 | Attachment space per Supporter (free accounts: USER_QUOTA_MB). |
EMBEDS | on | off shows video links (YouTube, Vimeo, Bilibili, Loom, Dailymotion, Niconico) as plain links and removes those hosts from the CSP frame-src. Set it for both the api and web containers. |
ALLOW_HTTP_WEBHOOKS | false | Allow plain http:// webhook URLs and private-network addresses (a receiver on your own network, like n8n or Home Assistant). Turns the SSRF guard's address check off for webhooks, so never set it on an instance strangers can sign up to. |
Admin
| Variable | Default | What it does |
|---|---|---|
ADMIN_EMAILS | (empty) | Comma-separated emails; these accounts become admins. |
ADMIN_ALLOWED_IPS | (empty) | Optional allow-list for /admin: comma-separated IPs or CIDRs, e.g. 203.0.113.4,10.0.0.0/8. |
Site and operator
| Variable | Default | What it does |
|---|---|---|
OPERATOR_NAME | Sevnly | Your name or organization, shown on the policy pages. |
OPERATOR_EMAIL | [email protected] | The one contact address shown everywhere (footer, FAQ, policies, error pages, security.txt). Set your own. |
OPERATOR_JURISDICTION | (empty) | Governing law shown on the Terms page. |
PUBLIC_STATS | true | Default for both the landing-page stats line and the /stats page. Admins can change each separately in site settings. |
The policy pages are templates, not legal advice. Review them for your instance.
Supporter tier (hosted sevnly.com only)
| Variable | Default | What it does |
|---|---|---|
SUPPORTER_TIER | false | false means no limits at all, the default for self-hosters. |
POLAR_ACCESS_TOKEN (secret) | (empty) | Polar API token, only if the tier is on. |
POLAR_WEBHOOK_SECRET (secret) | (empty) | Verifies Polar's signed webhooks at /v1/billing/webhook. |
SEO verification (optional)
| Variable | What it does |
|---|---|
GOOGLE_SITE_VERIFICATION | Google Search Console verification tag. |
BING_SITE_VERIFICATION | Bing Webmaster verification tag. |
Generating secrets
openssl rand -base64 32Use it for BETTER_AUTH_SECRET and for each ENCRYPTION_KEYS entry.
Rotating encryption keys: add the new key at the front of ENCRYPTION_KEYS and keep the old ones after it. New writes use the newest key and a rekey job re-encrypts old values. Remove an old key only after that has finished. Never commit or log these keys.
Backups
Everything is in Postgres, so one dump is a full backup (including attachments).
- Nightly
pg_dump -Fc, run as a Dokploy scheduled job on the app VPS (or your managed provider's backups). - The dump is streamed straight into
ageon the VPS, so it's never written unencrypted. Keep theagekey somewhere other than the backups. - Keep 14 days, on a different machine than the database.
- Point-in-time recovery (WAL archiving) is optional.
- Test a restore every month.
A nightly job can look like this:
pg_dump -Fc "$MIGRATE_DATABASE_URL" \
| age -r "$AGE_RECIPIENT" > "sevnly-$(date +%F).dump.age"(AGE_RECIPIENT is your backup job's own setting, not a Sevnly variable. Use a role that can read every table; the migrate role owns them.)
Restore:
age -d -i backup-key.txt sevnly-2026-11-30.dump.age \
| pg_restore --no-owner -d "$TARGET_DATABASE_URL"Deleted accounts age out of backups within 14 days, so keep retention at 14 days if your privacy policy promises that. Backup status (last success, size) appears in Admin → System.
Calendar sync OAuth apps
Google and Microsoft need an OAuth app that you create. Providers you don't configure are simply hidden. Replace api.example.com with your API domain.
Google Calendar
- In Google Cloud Console, create a project and enable the Google Calendar API.
- Set up the OAuth consent screen with your app name, support email and links to your privacy policy and terms (
/privacy,/terms). - Add the scopes
https://www.googleapis.com/auth/calendar.readonly(show events) andhttps://www.googleapis.com/auth/calendar.events(two-way sync). Sevnly asks for the smallest one for the direction the user picks. - Create an OAuth client ID of type Web application with the redirect URI:
https://api.example.com/v1/sync/oauth/google/callback - Put the ID and secret in
GOOGLE_CALENDAR_CLIENT_IDandGOOGLE_CALENDAR_CLIENT_SECRET. - Push notifications arrive at
https://api.example.com/v1/integrations/google/notify. It must be reachable over HTTPS.
Unverified Google apps work for up to 100 test users. For a public instance, submit the app for Google's OAuth app verification.
Microsoft (Outlook / Microsoft 365)
- In the Microsoft Entra admin center, open App registrations → New registration.
- Supported account types: match
MICROSOFT_TENANT(common= personal and work/school accounts). - Add two Web redirect URIs (one app covers both sign-in and Outlook sync):
https://api.example.com/auth/callback/microsoft https://api.example.com/v1/sync/oauth/microsoft/callback - Under API permissions, add Microsoft Graph delegated permissions:
openid,email,profile,User.Read(sign-in),Calendars.Read,Calendars.ReadWriteandoffline_access(sync). - Under Certificates & secrets, create a client secret. Note when it expires.
- Put the values in
MICROSOFT_CLIENT_ID,MICROSOFT_CLIENT_SECRETandMICROSOFT_TENANT. - Change notifications arrive at
https://api.example.com/v1/integrations/microsoft/notify. Sevnly answers Graph's validation handshake and checksclientState; subscriptions are renewed about every 2 days.
No keys needed
- iCloud: users sign in with their Apple ID email and an app-specific password.
- Other CalDAV (Fastmail, Nextcloud, …) and ICS links: polled every 10 and 15 minutes.
- Apple Reminders and device calendars: handled on the device by the native apps; nothing reaches your server.
All outgoing CalDAV and ICS fetches go through the SSRF guard: https only, no private or loopback addresses, 5 MB max, 10 s timeout. They can also use the WARP egress.
Supporter tier: off by default
The Supporter tier exists to pay for the hosted sevnly.com. On your own instance it's off by default (SUPPORTER_TIER=false), which means:
- no calendar limit and no paid plan,
- the storage quota is whatever you set (
USER_QUOTA_MB,SUPPORTER_QUOTA_MB), - no billing pages or payment provider needed.
If you do turn it on, configure Polar (POLAR_*) and set prices, limits and grants in Admin → Site settings → Supporter tier.
Admin
- Put your email in
ADMIN_EMAILS(comma-separated for several) before you sign up; that account becomes the first admin. Add more admins later in Admin → Users. - Admins must have 2FA or a passkey. Destructive admin actions ask you to re-authenticate.
- Open the panel at
/admin. Optionally restrict it to certain IPs or CIDRs withADMIN_ALLOWED_IPS. - Admins manage accounts and the site but can't read anyone's tasks, notes, lists or attachments. Impersonation is disabled.
- Useful site settings for self-hosters: registration (open / invite-only / closed), guest mode, sign-in methods, feature switches (public calendars, public stats,
/stats, webhooks, MCP, API keys, external calendars, attachments), limits, themes, branding (your logo and app name; the Sevnly credit and license notice stay in About), and maintenance mode.
Updating
- Back up first (or check that last night's backup succeeded).
- Optionally turn on maintenance mode (Admin → Site settings → Maintenance). The app becomes read-only with a banner; admins keep access.
- Deploy the new release:
git pull, then the samedocker compose … up -d --build(or redeploy in Dokploy). - Migrations run automatically when the
apicontainer starts (drizzle-kit migrate, usingMIGRATE_DATABASE_URL). - Check
https://api.example.com/healthand sign in. - Turn maintenance mode off.
The GitHub releases list what changed.
Help
Email [email protected], or open an issue on GitHub. Security problems: same address with [Security] in the subject.