| [7bc636b] | 1 | NODE_ENV=development
|
|---|
| 2 | PORT=3000
|
|---|
| [f99bbe8] | 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
|
|---|
| [09ee2bd] | 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=
|
|---|
| [7bc636b] | 13 | DATABASE_PATH=./storage/database.sqlite
|
|---|
| 14 | MEDIA_PATH=./storage/media
|
|---|
| [c80e78b] | 15 |
|
|---|
| [09ee2bd] | 16 | # Canonical public URL of this site (scheme + host, no trailing slash), e.g.
|
|---|
| 17 | # https://yourdomain.com . Used to build correct links in emails (password reset)
|
|---|
| 18 | # and OAuth redirects instead of trusting request headers (anti-spoofing).
|
|---|
| 19 | # Optional: leave empty and it falls back to the request host (fine for local/dev);
|
|---|
| 20 | # set it for production so email/login links point at the right place.
|
|---|
| 21 | PUBLIC_BASE_URL=
|
|---|
| [c80e78b] | 22 |
|
|---|
| [bb42dfb] | 23 | # ── Administrator ───────────────────────────────────────────────────
|
|---|
| 24 | # The admin logs in with username + password. On first start you create your
|
|---|
| 25 | # admin account via /auth/register; after that, registration is closed.
|
|---|
| 26 | # Forgot your password? -> "Forgot password" (email, see SMTP below) or always:
|
|---|
| 27 | # `npm run reset-admin` on the server.
|
|---|
| [9e27d64] | 28 |
|
|---|
| [bb42dfb] | 29 | # ── Google login for LISTENERS (optional) ───────────────────────────
|
|---|
| 30 | # Want listeners to sign in with Google to comment? Create your OWN Google OAuth
|
|---|
| 31 | # client (Google Cloud Console -> Credentials -> OAuth client ID -> "Web
|
|---|
| 32 | # application") and fill it in below. Your own client = your own Google Cloud
|
|---|
| 33 | # project; this site isn't centrally tied to anything. Not set? Then there's
|
|---|
| 34 | # simply no Google button. Google login NEVER grants admin rights (commenting only).
|
|---|
| 35 | # GOOGLE_REDIRECT_URI = <your domain>/auth/google/callback (set it exactly in the client)
|
|---|
| [9e27d64] | 36 | GOOGLE_CLIENT_ID=
|
|---|
| 37 | GOOGLE_CLIENT_SECRET=
|
|---|
| 38 | GOOGLE_REDIRECT_URI=https://example.com/auth/google/callback
|
|---|
| 39 |
|
|---|
| [bb42dfb] | 40 | # ── Email (optional) — for "forgot password" reset links ────────────
|
|---|
| 41 | # Not set? Then reset only works via `npm run reset-admin` on the server.
|
|---|
| [9e27d64] | 42 | SMTP_HOST=
|
|---|
| 43 | SMTP_PORT=587
|
|---|
| 44 | SMTP_USER=
|
|---|
| 45 | SMTP_PASS=
|
|---|
| 46 | SMTP_FROM=
|
|---|
| [cb01666] | 47 |
|
|---|
| [bb42dfb] | 48 | # ── Lite mode (optional) ────────────────────────────────────────────
|
|---|
| 49 | # Set to "off" to disable the whole audio feature (no built-in music hosting/
|
|---|
| 50 | # player, no ffmpeg needed). Klonkt then runs as a lightweight blog/photo/EPK
|
|---|
| 51 | # site, even on an environment without ffmpeg. Hub and Circles keep working.
|
|---|
| 52 | # External embeds (YouTube/SoundCloud/Spotify) keep working too.
|
|---|
| [cb01666] | 53 | KLONKT_AUDIO=on
|
|---|
| [cb4eda5] | 54 |
|
|---|
| [cbcc8a4] | 55 | # ── Premium extras ──────────────────────────────────────────────────
|
|---|
| 56 | # The core app, all updates and Cirkels are free. A handful of extras
|
|---|
| 57 | # (newsletter, statistics, EPK, link-in-bio, embeddable player, show agenda,
|
|---|
| 58 | # release planning, download-for-email) are unlocked by a one-time Patreon
|
|---|
| 59 | # supporter link — that's what funds the project:
|
|---|
| 60 | # klonkt.com / patreon.com/c/roboburr. Leave this on.
|
|---|
| [cb4eda5] | 61 | KLONKT_PREMIUM_ENABLED=on
|
|---|