Rhinox13/chatapi
0
1# Admin user credentials (auto-created on startup)
2CHATAPI_ADMIN_USERNAME=admin
3CHATAPI_ADMIN_PASSWORD=change-me
4
5# Optional. If omitted, the backend will generate a session secret on first startup
6# and persist it in the database config table.
7# CHATAPI_SESSION_SECRET=your-session-secret
8
9# Optional: load another env file from outside the project directory.
10# CHATAPI_ENV_FILE=/path/to/chatapi.env
11
12CHATAPI_DB_PATH=./data/chatapi.sqlite3
13CHATAPI_DATA_DIR=./data
14CHATAPI_CORS_ORIGINS=http://localhost:5173,http://127.0.0.1:5173
15CHATAPI_HOST=0.0.0.0
16CHATAPI_PORT=5000
17# Flask debug / reloader. Keep this at 0 on servers.
18# CHATAPI_DEBUG=0
19# Optional: when set, Flask will also serve this frontend dist directory directly.
20# Relative paths are resolved from the repository root.
21# CHATAPI_WEB_DIST_DIR=./frontend/dist
22# Optional: enable HTTPS directly in Flask by setting both variables.
23# Relative paths are resolved from the repository root.
24# CHATAPI_TLS_CERT_FILE=./certs/server.crt
25# CHATAPI_TLS_KEY_FILE=./certs/server.key
26
27# Optional SMTP configuration for sending emails
28# CHATAPI_SMTP_HOST=smtp.example.com
29# CHATAPI_SMTP_PORT=587
30# CHATAPI_SMTP_USERNAME=
31# CHATAPI_SMTP_PASSWORD=
32# CHATAPI_SMTP_USE_TLS=1
33
34# Optional shared sender address for all email providers
35# CHATAPI_EMAIL_FROM=noreply@kirari.fun
36
37# Optional Resend configuration for sending emails
38# If you use Resend, replace re_xxxxxxxxx with your real API key.
39# CHATAPI_RESEND_API_KEY=re_xxxxxxxxx
40
41# Optional Brevo configuration for sending emails
42# CHATAPI_BREVO_API_KEY=YOUR_BREVO_API_KEY
43# Optional display name for Brevo sender.
44# CHATAPI_BREVO_FROM_NAME=ChatAPI
45
46# Optional Tencent Cloud SES configuration for sending emails
47# Tencent Cloud uses SecretId / SecretKey. The sender address must be verified in SES.
48# CHATAPI_TENCENTCLOUD_SECRET_ID=AKIDxxxxxxxxxxxxxxxx
49# CHATAPI_TENCENTCLOUD_SECRET_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
50# Optional SES region. Supported regions in the Tencent Cloud SES API include ap-guangzhou and ap-hongkong.
51# CHATAPI_TENCENTCLOUD_SES_REGION=ap-guangzhou
52# Required for normal SES accounts unless you have a special configuration that allows simple email sending.
53# CHATAPI_TENCENTCLOUD_TEMPLATE_ID=100091
54
55# Optional GeeTest v4 captcha configuration for registration protection
56# CHATAPI_GEETEST_CAPTCHA_ID=
57# CHATAPI_GEETEST_CAPTCHA_KEY=
58# CHATAPI_GEETEST_API_SERVER=http://gcaptcha4.geetest.com
59 