Files
teaching-feedback-assistant/server/.env.example

41 lines
1.5 KiB
Plaintext

# The API starts without this variable, but data endpoints return HTTP 503.
# DATABASE_URL=postgres://username:password@hostname:5432/teaching_feedback?sslmode=require
HOST=127.0.0.1
PORT=8080
DATABASE_MAX_CONNECTIONS=5
# WeChat login uses the free wx.login/code2Session basic capability. Keep the
# AppSecret on the server and configure both values together.
# WECHAT_APP_ID=wx3fe11e262a4b4885
# WECHAT_APP_SECRET=your-app-secret
AUTH_SESSION_TTL_DAYS=30
# Local compatibility only. Production must keep this false.
ALLOW_DEVELOPMENT_USER_HEADER=false
# A single development origin. Leave unset to disable CORS middleware.
# CORS_ALLOWED_ORIGIN=https://servicewechat.com
# Private server directory used to retain uploaded audio for transcription retry.
AUDIO_STORAGE_DIR=./data/audio
# Local FunASR is the default Chinese transcription provider.
ASR_PROVIDER=local
LOCAL_ASR_URL=http://127.0.0.1:10095
ASR_REQUEST_TIMEOUT_SECONDS=1800
ASR_WORKER_CONCURRENCY=1
ASR_JOB_LEASE_SECONDS=3600
# Optional Tencent Cloud fallback. Set ASR_PROVIDER=tencent and configure all values.
# TENCENT_CLOUD_ASR_APP_ID=1234567890
# TENCENT_CLOUD_ASR_SECRET_ID=your-secret-id
# TENCENT_CLOUD_ASR_SECRET_KEY=your-secret-key
TENCENT_CLOUD_ASR_ENGINE_TYPE=16k_zh
# Optional OpenAI-compatible chat completions endpoint for polished feedback summaries.
# Without it, the API uses a local extractive summary and remains functional.
# FEEDBACK_SUMMARY_API_URL=https://api.example.com/v1/chat/completions
# FEEDBACK_SUMMARY_API_KEY=your-api-key
# FEEDBACK_SUMMARY_MODEL=your-model