Changeset 09ee2bd in Klonkt for README.md


Ignore:
Timestamp:
06/23/2026 09:25:42 PM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
f99bbe8
Parents:
45271b7
Message:

feat: auto-generate SESSION_SECRET if not set (zero-config Docker/manual)

If SESSION_SECRET is missing, generate a strong one on first boot and persist it
to <dataDir>/.session-secret (stable across restarts/updates). Env var still wins.
PUBLIC_BASE_URL already falls back to the request host. So Docker (B) and manual
(C) installs now run with no required .env editing. Docs + .env.example updated;
docker-compose comment translated to English.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • README.md

    r45271b7 r09ee2bd  
    5858git clone https://github.com/roboburr/klonkt.git
    5959cd klonkt
    60 cp .env.example .env          # then edit .env: set SESSION_SECRET + PUBLIC_BASE_URL
     60cp .env.example .env          # works as-is; optionally set PUBLIC_BASE_URL to your domain
    6161docker compose up -d
    6262```
    6363
     64`SESSION_SECRET` is auto-generated on first start, so the defaults work as-is.
    6465Klonkt runs on port 3000 — put your own reverse proxy in front for HTTPS (see
    6566step 5 of Option C). Data (database + media) stays in the `klonkt-data` volume,
     
    7980```
    8081
    81 **2. Create your config** — copy the example and edit it; at minimum set a long
    82 random `SESSION_SECRET` and your `PUBLIC_BASE_URL` (e.g. `https://yourdomain.com`):
     82**2. Create your config.** `SESSION_SECRET` (the key that signs login cookies) is
     83auto-generated on first start, so this works as-is. For production, set
     84`PUBLIC_BASE_URL` to your site address (e.g. `https://yourdomain.com`) so email &
     85login links are correct:
    8386
    8487```bash
    8588cp .env.example .env
    86 nano .env
     89nano .env          # optional: PUBLIC_BASE_URL, plus SMTP / Google if you want them
    8790```
    8891
Note: See TracChangeset for help on using the changeset viewer.