Self-hosting
HyperCloud is one Docker container that serves the web app, the API, CalDAV, CardDAV and WebDAV on port 3001, with all data in one SQLite database on a volume.
Quick start
Take docker-compose.yml from the repository, set WEBAUTHN_ORIGIN to your public address, then:
docker compose up -d
docker compose logs -f hyper-calendarOr with plain Docker:
docker run -d --name hypercloud -p 3001:3001 \
-v hyper-calendar-data:/data \
-e WEBAUTHN_ORIGIN=https://cloud.example.com \
registry.gitlab.com/kreuz-com-group/hypercloud:latestThe image is multi-arch (amd64, arm64), so the same command works on a Raspberry Pi. :latest follows stable releases, :beta the beta channel, and a version tag such as :v4.1.0 pins one. The database migrates itself at start.
To upgrade, pull the new image and restart. Read the release notes first and take a snapshot. A snapshot from a newer release will not start on an older one.
Reverse proxy and HTTPS
PWA install, push notifications and passkeys need HTTPS, so put HyperCloud behind a proxy that terminates TLS (Caddy, Traefik, nginx) and forwards to port 3001. HyperCloud has its own accounts. Do not put an SSO portal or forward-auth in front of it, because the apps need /api and /dav directly.
WEBAUTHN_ORIGINis required in production and must be the public origin, for examplehttps://cloud.example.com. Passkey sign-in is checked against it, and the server will not start without it.TRUST_PROXY=1behind a proxy, so rate limiting sees real client IPs.
Traefik example:
labels:
- "traefik.enable=true"
- "traefik.http.routers.hypercloud.rule=Host(`cloud.example.com`)"
- "traefik.http.routers.hypercloud.entrypoints=websecure"
- "traefik.http.routers.hypercloud.tls.certresolver=letsencrypt"
- "traefik.http.services.hypercloud.loadbalancer.server.port=3001"First run
The first account to register becomes the admin. In production that first sign-up asks for a setup code, which the server writes to its log while there is no account, so nobody else can claim a fresh instance. The sign-up screen says where to look:
- Docker Compose:
docker compose logs hyper-calendar | grep setup_code - Docker:
docker logs <container> 2>&1 | grep setup_code - systemd:
journalctl -u <service> | grep setup_code
A new code is made on each start: use the newest. Set HC_SETUP_CODE to fix it in advance.
There is no password reset by email. Someone who forgot their password asks an admin, who sets a new one under Settings → Users (the account's menu, Set new password…, which asks for the admin's own password too). That signs them out everywhere. With encryption on, their encrypted calendars still need the old password or a recovery code.
Then, under Settings → Instance, turn off open registration if you do not want strangers signing up. Everything about the instance is under Administration in an admin's Settings: users, groups, apps, sign-in providers, switches, snapshots.
Choosing the apps
Every app (calendar, tasks, scheduling polls, contacts, files, finance, wellbeing) is on by default. Under Settings → Apps you can:
- Switch an app off. It disappears for everyone, including its API, DAV and MCP access. Its data is kept.
- Offer it to some groups only. Everyone else sees neither the app nor its routes, and its public links stop working for them.
- Remove it. This deletes its data for every account.
Wellbeing keeps health data, so an admin sees only how many records of each kind the instance holds (GET /api/wellbeing/admin/overview), never what they say or whose they are. Its records are in each account's export and backups, and its trash is emptied by the same retention as the calendar's.
Contacts and polls need the calendar. The same works from the command line, with the server running:
docker compose exec hyper-calendar hc-server apps list
docker compose exec hyper-calendar hc-server apps enable polls --group Planning
docker compose exec hyper-calendar hc-server apps disable tasksThird-party apps can be added as plugins.
Keeping accounts apart
For an instance whose users must not see each other (clients of one practice, say), Settings → Instance → Keep accounts apart turns off looking people up, the account directory in Contacts, sharing, invitations and free/busy between accounts. Polls and file links keep working. Set ISOLATED_USERS=1 to lock it on.
Without it, all users of an instance can see each other's busy times (never the details) and profile pictures. Only register accounts you trust.
Configuration
Every variable is checked at start. A malformed value stops the server with an explanation, and a missing optional one turns just that feature off.
| Variable | Default | Purpose |
|---|---|---|
WEBAUTHN_ORIGIN | required | Public origin of the instance |
WEBAUTHN_RP_ID | host of WEBAUTHN_ORIGIN | Passkey relying-party id, only for a deliberately different one |
DATABASE_PATH | /data/hyper-calendar.db | The SQLite database |
DATABASE_READERS | 4 | Connections that read the database at once, 1 to 64; more only for many users at once |
PORT / HOST | 3001 / 0.0.0.0 | Listen address |
TRUST_PROXY | unset | 1 behind a reverse proxy |
CSRF_ALLOWED_ORIGINS | unset | Extra origins allowed to send state-changing requests, comma-separated |
CALDAV_SECRET | unset | 32 bytes (hex or base64) sealing stored passwords and TOTP secrets. Needed for CalDAV/CardDAV links |
VAPID_PUBLIC_KEY / VAPID_PRIVATE_KEY / VAPID_SUBJECT | unset | Web Push for reminders (Integrations) |
FILES_PATH | files/ beside the database | File contents (Storage) |
FILES_S3_* | unset | Keep file contents in an S3 bucket (Storage) |
BACKUP_PATH | backups/ beside the database | Where daily snapshots go |
BACKUP_KEEP_DAYS | 30 | Daily per-account snapshots kept |
DB_BACKUP_KEEP | 14 | Full database snapshots kept |
ISOLATED_USERS | unset | 1 locks keeping accounts apart on |
HC_SETUP_CODE | random per start | The code the first sign-up asks for |
HC_PLUGINS_DIR, HC_PLUGIN_KEYS, HC_PLUGINS, HC_PLUGINS_ALLOW_UNSIGNED | see Plugins | Plugin storage, trusted signing keys, switching plugins off |
METRICS_TOKEN, METRICS_LISTEN, METRICS_LISTEN_ALLOW_PUBLIC | unset | Turn on /metrics (Monitoring) |
RATE_LIMITS | built in | Override rate limits as name=max/seconds, comma-separated |
MEMORY_BUDGET_MB | from the memory limit | What work holding whole files in memory may hold at once; see Memory and load |
MAX_REQUESTS | 256 | Requests handled at once; more are answered 503 at once |
REQUEST_TIMEOUT | 120 | Seconds before a request is answered 503; 15 minutes for restores, imports and attachments |
MAX_CONNECTIONS | 1024 | Connections open at once; more wait until one closes |
HEADER_READ_TIMEOUT | 30 | Seconds a client has to send a request's headers |
RUST_LOG | info | Log filter (LOG_LEVEL is read when unset) |
TZ | system | Server time zone |
HC_TZDATA | system | Time zone rules: system, bundled (compiled in) or a zoneinfo path |
WEATHER_PROVIDER | brightsky | The weather source a user starts on: brightsky, openmeteo, metno or nws |
WEATHER_BRIGHTSKY_URL, WEATHER_OPENMETEO_URL, WEATHER_METNO_URL, WEATHER_NWS_URL | the public services | Your own instances of the weather sources |
WEATHER_USER_AGENT | the project's URL | How the server introduces itself to the weather sources (MET Norway and the NWS want a contact) |
SOURCE_URL | upstream repository | Where users get this instance's source. Set it if you run a modified copy (AGPL) |
ANDROID_CERT_SHA256 | unset | Android signing certificate fingerprints, for app links on a custom Android build |
NODE_ENV | production | Set by the image. development, test and e2e are for working on HyperCloud |
HC_WEB_DIR | /app/web/dist | The built web app. Set by the image |
AUTH_DEV_AUTOLOGIN | unset | Development only: skips sign-in. Refused in production |
The example docker-compose.yml lists every variable with a comment, and shows where the data goes on the host (a named volume, a host directory, or the database, files and snapshots on separate disks), how to put a proxy in front, and optional Caddy and Prometheus services.
When people allow product lookups in Wellbeing on the web, the server asks world.openfoodfacts.org and search.openfoodfacts.org over HTTPS; let it reach both if you filter outgoing traffic.
The server refuses outbound requests to private and loopback addresses, so a user cannot point a calendar feed or CalDAV link at your local network. Identity providers are the exception.
Memory and load
An empty instance idles at about 30 MB of memory. Uploads and downloads stream, in Files and over WebDAV, so many clients syncing at once add little. The work that holds a whole file or request in memory is different: making a thumbnail, reading a file's text for search, sending a file to an S3 bucket, the requests whose body is read whole (an attachment, an import, large JSON), and a restore's rows. All of it shares one memory budget.
By default the budget is the container's memory limit less a quarter of it (at least 64 MB), so 192 MB of the example compose file's 256 MB. Without a limit it is 512 MB, and MEMORY_BUDGET_MB sets it outright. Work in the background waits for its turn. A request waits up to ten seconds and is otherwise answered 503 with Retry-After, and the clients try again. A request that could never fit gets a 413. A burst therefore slows the server down instead of getting it killed with every request in flight.
What needs more than the default 256 MB:
.icsimports hold about three times the file.- Restores do not hold the backup: it waits on disk beside the Files (
FILES_PATH) and is read a row at a time, so a restore holds about three times its largest row, at most one attachment (about 40 MB at the default 10 MB attachment limit). The contacts and each app's data are read whole, so a backup with a very large address book needs three times that. - CSV imports wait on disk the same way and are read a row at a time: they hold about three times their largest row, or the rows of one series when those are spread far apart in the file.
- Backups into Files and Export everything as files (.zip) hold an account's whole backup while writing it: all its data, in every format (iCalendar, CSV, vCard and JSON), so a few times its archive.
- Large photos. A 48 MP photo needs about 190 MB to make its thumbnail. With a smaller budget it has none, and the grid shows an icon.
- Many people at once. Give a large multi-user instance 512 MB or more. Adding users is much cheaper than adding instances.
Under heavy traffic the server also turns requests away rather than queueing them. Past MAX_REQUESTS in flight a request is answered 503 at once, past REQUEST_TIMEOUT a request is cut off with a 503, and past MAX_CONNECTIONS new connections wait. A client gets HEADER_READ_TIMEOUT to send its headers, so slow or idle connections are closed. Raise MAX_REQUESTS for a large instance on a large machine.
If the container is killed anyway, Docker restarts it within seconds (restart: unless-stopped). This shows whether memory was the reason:
docker inspect --format '{{.State.OOMKilled}}' hyper-calendarThe alert rules warn when memory nears the limit and when requests are being turned away.
just load-test measures the peak memory of a server under photo uploads, thumbnails, downloads and a burst of requests, for a limit you give it.
Disk use is the database, file contents and snapshots.