35 lines
1.1 KiB
Bash
35 lines
1.1 KiB
Bash
# --- server ---
|
|
PORT=3000
|
|
HOST=127.0.0.1
|
|
# ADMIN access key (plain). This is the admin account's key — it manages all
|
|
# other No-KYC accounts from the web UI (Accounts panel).
|
|
# Generate: openssl rand -base64 24
|
|
APP_PASSWORD=change-me
|
|
# Session TTL in hours (Bearer token stored in localStorage, no cookies)
|
|
SESSION_TTL_HOURS=720
|
|
# Data dir: holds kisassistant.db (SQLite: users, sessions, chats, shares)
|
|
DATA_DIR=./data
|
|
|
|
# Public docs wiki (Gitea wiki pages of this repo). GET /wiki redirects here.
|
|
WIKI_URL=https://git.kisakay.com/k/chat/wiki
|
|
|
|
# --- rate limit on /api/auth/login (per IP, sliding window) ---
|
|
RATE_LIMIT_MAX=5
|
|
RATE_LIMIT_WINDOW_MIN=10
|
|
|
|
# --- drivers ---
|
|
# Priority (global): ollama -> mistral -> puppeteer-openai(stub) -> deepseek -> anthropic -> openai
|
|
OLLAMA_HOST=http://10.66.66.4:11434
|
|
OLLAMA_ENABLED=true
|
|
# Stubs below: leave empty to keep disabled. Implemented last per spec.
|
|
MISTRAL_API_KEY=
|
|
MISTRAL_ENABLED=false
|
|
DEEPSEEK_API_KEY=
|
|
DEEPSEEK_ENABLED=false
|
|
ANTHROPIC_API_KEY=
|
|
ANTHROPIC_ENABLED=false
|
|
OPENAI_API_KEY=
|
|
OPENAI_ENABLED=false
|
|
# Puppeteer driver is a stub on purpose (fragile ToS-risky). Never enabled for now.
|
|
PUPPETEER_ENABLED=false
|