37836b2755
- Create main.py with CORS and GZip middleware - Add Settings class with all configuration options - Support .env file for environment variables - Add health check and root endpoints - Create comprehensive README with quick start guide - Add .env.example template - Include API usage examples and troubleshooting Phase 4 Task 30/68 completed
33 lines
1.0 KiB
Bash
33 lines
1.0 KiB
Bash
# 小虾 SaaS 环境变量配置
|
|
|
|
# ==================== 应用配置 ====================
|
|
APP_NAME=小虾 SaaS
|
|
BASE_URL=http://localhost:3000
|
|
|
|
# ==================== 数据库配置 ====================
|
|
DATABASE_URL=postgresql://xiaoxia_user:your_password@localhost:5432/xiaoxia_saas
|
|
|
|
# ==================== Redis 配置 ====================
|
|
REDIS_URL=redis://localhost:6379/0
|
|
|
|
# ==================== JWT 配置 ====================
|
|
JWT_SECRET_KEY=your-super-secret-key-change-this-in-production-min-32-chars
|
|
JWT_ALGORITHM=HS256
|
|
JWT_ACCESS_TOKEN_EXPIRE_MINUTES=30
|
|
JWT_REFRESH_TOKEN_EXPIRE_DAYS=30
|
|
|
|
# ==================== 邮件配置 ====================
|
|
SMTP_HOST=smtp.gmail.com
|
|
SMTP_PORT=587
|
|
SMTP_USER=your-email@gmail.com
|
|
SMTP_PASSWORD=your-app-specific-password
|
|
SMTP_FROM_EMAIL=noreply@xiaoxia-saas.com
|
|
SMTP_FROM_NAME=小虾 SaaS
|
|
|
|
# ==================== 环境配置 ====================
|
|
ENVIRONMENT=development
|
|
DEBUG=true
|
|
|
|
# ==================== CORS 配置 ====================
|
|
CORS_ORIGINS=["http://localhost:3000","http://localhost:5173"]
|