| 1 | NODE_ENV=development
|
|---|
| 2 | PORT=3000
|
|---|
| 3 |
|
|---|
| 4 | # Network interface to bind. 127.0.0.1 = only reachable via a reverse proxy on the
|
|---|
| 5 | # same machine (recommended for a manual install behind Caddy/nginx — keeps the app
|
|---|
| 6 | # off the public internet). Use 0.0.0.0 only if you need direct external access
|
|---|
| 7 | # (no proxy/HTTPS — not recommended). Docker sets this to 0.0.0.0 itself.
|
|---|
| 8 | HOST=127.0.0.1
|
|---|
| 9 | # Secret used to sign login-session cookies. Leave EMPTY to auto-generate a strong
|
|---|
| 10 | # one on first start (saved to storage/.session-secret, stays stable across
|
|---|
| 11 | # restarts/updates). Or set your own: openssl rand -hex 32
|
|---|
| 12 | SESSION_SECRET=
|
|---|
| 13 | # Encrypts the stored Patreon secrets for paid posts. Same deal: leave EMPTY to
|
|---|
| 14 | # auto-generate on first use (saved to storage/.paid-secret, kept outside the DB
|
|---|
| 15 | # so a database dump alone stays useless). Or set your own: openssl rand -base64 32
|
|---|
| 16 | PAID_SECRET=
|
|---|
| 17 | # Web-push (notificaties) VAPID keys. Leave EMPTY to auto-generate on first use
|
|---|
| 18 | # (saved to storage/.vapid). Do NOT rotate: new keys break every subscription.
|
|---|
| 19 | VAPID_PUBLIC_KEY=
|
|---|
| 20 | VAPID_PRIVATE_KEY=
|
|---|
| 21 | VAPID_SUBJECT=
|
|---|
| 22 | DATABASE_PATH=./storage/database.sqlite
|
|---|
| 23 | MEDIA_PATH=./storage/media
|
|---|
| 24 |
|
|---|
| 25 | # Canonical public URL of this site (scheme + host, no trailing slash), e.g.
|
|---|
| 26 | # https://yourdomain.com . Used to build correct links in emails (password reset)
|
|---|
| 27 | # and OAuth redirects instead of trusting request headers (anti-spoofing).
|
|---|
| 28 | # Optional: leave empty and it falls back to the request host (fine for local/dev);
|
|---|
| 29 | # set it for production so email/login links point at the right place.
|
|---|
| 30 | PUBLIC_BASE_URL=
|
|---|
| 31 |
|
|---|
| 32 | # Strict HSTS. By default Klonkt sends a plain long max-age (safe on any domain).
|
|---|
| 33 | # Set HSTS_STRICT=1 ONLY if Klonkt owns the whole domain incl. all its subdomains:
|
|---|
| 34 | # it adds `includeSubDomains; preload`, which forces every subdomain to HTTPS and can
|
|---|
| 35 | # get your domain baked into browsers near-permanently. Leave unset if unsure.
|
|---|
| 36 | # HSTS_STRICT=1
|
|---|
| 37 |
|
|---|
| 38 | # ── Administrator ───────────────────────────────────────────────────
|
|---|
| 39 | # The admin logs in with username + password. On first start you create your
|
|---|
| 40 | # admin account via /auth/register; after that, registration is closed.
|
|---|
| 41 | # Forgot your password? -> "Forgot password" (email, see SMTP below) or always:
|
|---|
| 42 | # `npm run reset-admin` on the server.
|
|---|
| 43 |
|
|---|
| 44 | # ── Email (optional) — for "forgot password" reset links ────────────
|
|---|
| 45 | # Not set? Then reset only works via `npm run reset-admin` on the server.
|
|---|
| 46 | SMTP_HOST=
|
|---|
| 47 | SMTP_PORT=587
|
|---|
| 48 | SMTP_USER=
|
|---|
| 49 | SMTP_PASS=
|
|---|
| 50 | SMTP_FROM=
|
|---|
| 51 |
|
|---|
| 52 | # ── Lite mode (optional) ────────────────────────────────────────────
|
|---|
| 53 | # Set to "off" to disable the whole audio feature (no built-in music hosting/
|
|---|
| 54 | # player, no ffmpeg needed). Klonkt then runs as a lightweight blog/photo/EPK
|
|---|
| 55 | # site, even on an environment without ffmpeg. Hub and Circles keep working.
|
|---|
| 56 | # External embeds (YouTube/SoundCloud/Spotify) keep working too.
|
|---|
| 57 | # Reversible: set back to "on" (or remove) and restart — no reinstall, tracks kept.
|
|---|
| 58 | KLONKT_AUDIO=on
|
|---|
| 59 |
|
|---|
| 60 | # ── Premium extras ──────────────────────────────────────────────────
|
|---|
| 61 | # The core app, all updates and Cirkels are free. A handful of extras
|
|---|
| 62 | # (newsletter, statistics, EPK, link-in-bio, embeddable player, show agenda,
|
|---|
| 63 | # release planning, download-for-email, paid posts) are unlocked by a one-time
|
|---|
| 64 | # Patreon supporter link — that's what funds the project:
|
|---|
| 65 | # klonkt.com / patreon.com/c/roboburr. Leave this on.
|
|---|
| 66 | KLONKT_PREMIUM_ENABLED=on
|
|---|