update
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
# --- server ---
|
||||
# development locally; the NixOS module sets production (gates DRIVER_DEBUG).
|
||||
NODE_ENV=development
|
||||
PORT=3000
|
||||
HOST=127.0.0.1
|
||||
# ADMIN access key (plain). This is the admin account's key — it manages all
|
||||
@@ -9,16 +11,33 @@ APP_PASSWORD=change-me
|
||||
SESSION_TTL_HOURS=720
|
||||
# Data dir: holds kisassistant.db (SQLite: users, sessions, chats, shares)
|
||||
DATA_DIR=./data
|
||||
# Local file CDN (avatars). NixOS module points it under the state dir.
|
||||
CDN_DIR=./cdn
|
||||
# Local file CDN (avatars today, more namespaces tomorrow).
|
||||
# Dev default is a folder next to the codebase; NixOS points it under state dir.
|
||||
CDN_DIR=./cdn
|
||||
|
||||
# --- platform tools: OCR (tesseract binary) ---
|
||||
# TESSERACT_BIN=/nix/store/…-tesseract-5.5.3/bin/tesseract
|
||||
OCR_LANG=eng
|
||||
OCR_MAX_CHARS=100000
|
||||
|
||||
# Per-driver debug logging to stdout ([driver:name] lines).
|
||||
DRIVER_DEBUG=true
|
||||
|
||||
# Public docs wiki (Gitea wiki pages of this repo). GET /wiki redirects here.
|
||||
WIKI_URL=https://git.kisakay.com/k/chat/wiki
|
||||
|
||||
# --- key recovery via email (optional — empty SMTP_HOST disables it) ---
|
||||
SMTP_HOST=
|
||||
SMTP_PORT=587
|
||||
SMTP_SECURE=false
|
||||
SMTP_USER=
|
||||
SMTP_PASS=
|
||||
SMTP_FROM=KisAssistant <[email protected]>
|
||||
APP_URL=http://localhost:3000
|
||||
RESET_TTL_MIN=60
|
||||
|
||||
# --- rate limit on /api/auth/login (per IP, sliding window) ---
|
||||
RATE_LIMIT_MAX=5
|
||||
RATE_LIMIT_WINDOW_MIN=10
|
||||
|
||||
Reference in New Issue
Block a user