Reference
Variables
All names of environment variables: application, image, local Compose, VPS, backup and browser tests.
The application
Read in lib/env.ts, explained under
Environment variables.
| Variable | Required | Default | Valid |
|---|---|---|---|
HENNIOKF_ROOT | yes | none | any path, relative to the working directory |
HENNIOKF_SYNC_TOKEN | for the first admin | none | any non-empty value |
HENNIOKF_URL | no | http://localhost:3370 | an address with http or https |
HENNIOKF_AUTH_SECRET | no | generated under users/secret | from 32 characters |
HENNIOKF_SIGN_IN_LIMIT | no | 10 | an integer from 1 |
The variables of later phases (HENNIOKF_BUNDLES, HENNIOKF_SYNC_MINUTES,
HENNIOKF_SOURCE_<NAME>, HENNIOKF_STYLE, HENNIOKF_DESKTOP,
HENNIOKF_RELEASE_TOKEN) are planned in spec/data.md and come here with
their phase.
From the image
| Variable | Value | From |
|---|---|---|
HENNIOKF_ROOT | /henniokf | docker/Dockerfile |
HENNIOKF_COMMIT | the short commit, optionally with +dirty | build argument COMMIT |
HENNIOKF_BUILT_AT | the build time | build argument BUILT_AT |
PORT | 3370 | docker/Dockerfile, read by server.js |
HOSTNAME | 0.0.0.0 | docker/Dockerfile, read by server.js |
NODE_ENV | production | docker/Dockerfile |
Compose locally
docker/compose.local.yml, from the environment of the call:
| Variable | Required | Default |
|---|---|---|
LOCAL_ROOT_DIR | yes | none, Compose stops otherwise |
LOCAL_PORT | no | 3370 |
HENNIOKF_SYNC_TOKEN | for the first admin | empty |
HENNIOKF_URL | no | empty, then the default of the application applies |
COMMIT, BUILT_AT | no | empty |
VPS
docker/compose.vps.yml, from docker/.env after docker/vps.env.example:
| Variable | Required | Default | What |
|---|---|---|---|
HENNIOKF_HOST | yes | none | <subdomain>.<domain>, from it HENNIOKF_URL=https://<host> |
HENNIOKF_SYNC_TOKEN | yes | none | the instance token |
HENNIOKF_DATA | no | /srv/henniokf | the root directory on the VPS |
HENNIOKF_IMAGE | no | ghcr.io/arpablo/henniokf:latest | another image or a fixed state |
TRAEFIK_NETWORK | no | traefik-proxy | the network of Traefik |
TRAEFIK_ENTRYPOINT | no | websecure | the entry point for HTTPS |
TRAEFIK_CERTRESOLVER | no | letsencrypt | the certificate resolver |
Backup
docker/backup.sh, from the environment of the call:
| Variable | Default | What |
|---|---|---|
HENNIOKF_DATA | /srv/henniokf | the root directory |
BACKUP_DIR | /srv/henniokf-backup | folder for the archives |
BACKUP_DAYS | 14 | archives stay this many days |
BACKUP_CONTAINER | henniokf | the running container, - without Docker |
BACKUP_APP | /opt/henniokf | the clone, only with - |
BACKUP_COPY_TO | empty | optionally a target for rsync |
Browser tests
playwright.config.ts under webServer.env:
| Variable | Value |
|---|---|
HENNIOKF_ROOT | .data-e2e, fresh on every run |
HENNIOKF_SYNC_TOKEN | a value only for these tests, in e2e/helpers.ts as TOKEN |
HENNIOKF_SIGN_IN_LIMIT | 100000 |
HENNIOKF_URL | http://localhost:3371 |
CI is set by GitHub Actions. Then Playwright retries a failed test once
and forbids test.only. PLAYWRIGHT_BROWSERS_PATH points Playwright to
another directory of browsers, for example in a cloud session.