Files
cnats/.env.example
bl ec3771f2e7 Persist chat history to Postgres via durable JetStream consumer
DATABASE_URL required at startup; schema self-initializes.
Compose gains a postgres service for standalone dev.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-08 22:14:26 +02:00

25 lines
820 B
Bash

# Copy to .env and fill in. `dotenvy` loads this at startup.
# NATS server the chat server publishes/subscribes on.
NATS_URL=nats://127.0.0.1:4222
# Postgres archive for message history (written by the JetStream consumer).
DATABASE_URL=postgres://cnats:cnats@127.0.0.1:5432/cnats
# Base URL of your Kanidm instance (no trailing slash).
KANIDM_URL=https://idm.example.com
# OAuth2 client registered in Kanidm (see README for the kanidm commands).
OAUTH2_CLIENT_ID=cnats
OAUTH2_CLIENT_SECRET=change-me
# Where THIS app is reachable by browsers; the OIDC redirect is
# ${PUBLIC_URL}/auth/callback and must match the Kanidm client config.
PUBLIC_URL=http://localhost:3000
# Set to true when serving over HTTPS so session cookies are Secure-only.
COOKIE_SECURE=false
# Optional: log filter
# RUST_LOG=info,cnats=debug