-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
57 lines (44 loc) · 1.28 KB
/
.env.example
File metadata and controls
57 lines (44 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# empEnglish Environment Configuration
# Application Settings
APP_NAME=empEnglish
APP_VERSION=1.0.0
DEBUG=true
# Database Configuration
DATABASE_URL=mysql+pymysql://root:password@localhost:3306/empenglish
# JWT Authentication
JWT_SECRET_KEY=your-secret-key-change-in-production-use-openssl-rand-hex-32
JWT_ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=120
REFRESH_TOKEN_EXPIRE_DAYS=30
# Redis (for caching and rate limiting)
REDIS_URL=redis://localhost:6379/0
REDIS_TTL=3600
# AI Services Configuration
# ASR (Automatic Speech Recognition) - Whisper
WHISPER_MODEL=base
WHISPER_DEVICE=cpu
# TTS (Text to Speech) - Edge-TTS
TTS_ENGINE=edge-tts
TTS_VOICE=en-US-AriaNeural
# LLM (Large Language Model) - Qwen/DeepSeek
LLM_PROVIDER=qwen
LLM_MODEL=qwen-turbo
LLM_API_KEY=your-llm-api-key
LLM_BASE_URL=https://api.example.com/v1
# WeChat Integration
WECHAT_APP_ID=your-wechat-app-id
WECHAT_APP_SECRET=your-wechat-app-secret
# MinIO (Object Storage for audio files)
MINIO_ENDPOINT=http://localhost:9000
MINIO_ACCESS_KEY=minioadmin
MINIO_SECRET_KEY=minioadmin
MINIO_BUCKET=empenglish-audio
# Rate Limiting
RATE_LIMIT_PER_MINUTE=100
RATE_LIMIT_LOGIN_PER_HOUR=10
RATE_LIMIT_SUBMIT_PER_MINUTE=20
# CORS
CORS_ORIGINS=["http://localhost:3000","http://localhost:5173"]
# Server Configuration
HOST=0.0.0.0
PORT=8000