Changeset 09ee2bd in Klonkt for docker-compose.yml


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
  • docker-compose.yml

    r45271b7 r09ee2bd  
    1 # Klonkt — zelf-host met Docker Compose.
     1# Klonkt — self-host with Docker Compose.
    22#
    3 #   1. cp .env.example .env   en vul SESSION_SECRET + PUBLIC_BASE_URL in
     3#   1. cp .env.example .env     (works as-is: SESSION_SECRET is auto-generated;
     4#                                optionally set PUBLIC_BASE_URL to your domain so
     5#                                email/login links are correct)
    46#   2. docker compose up -d
    5 #   3. open je site en maak via /auth/register je beheerdersaccount aan
     7#   3. open your site and create your admin account at /auth/register
    68#
    7 # Standaard luistert de app op poort 3000. Zet er een reverse-proxy (Caddy/
    8 # nginx) vóór voor HTTPS op je domein — zie README.
     9# The app listens on port 3000. Put a reverse proxy (Caddy/nginx) in front for
     10# HTTPS on your domain — see README.
    911services:
    1012  klonkt:
Note: See TracChangeset for help on using the changeset viewer.