Files
xiaoxia-saas/.env.production.example
T
Xiaoxia AI f8742351e3
Deploy / Deploy Staging (push) Failing after 6s
Deploy / Deploy Production (push) Has been skipped
Tests / test (push) Failing after 20s
Tests / lint (push) Failing after 20s
feat(config): add environment configuration management
- Add comprehensive environment configuration guide
- Create .env.development for development setup
- Create .env.production.example as production template
- Add LOG_LEVEL configuration to Settings
- Add .env.production to .gitignore
- Support multiple environments: dev/test/staging/prod
- Include security best practices and checklists

Phase 4 Task 43/68 completed
2026-06-17 08:38:13 +08:00

31 lines
866 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 生产环境配置模板(实际使用时复制为 .env.production
ENVIRONMENT=production
DEBUG=false
USE_IN_MEMORY_DB=false
LOG_LEVEL=WARNING
# 数据库(必须修改)
DATABASE_URL=postgresql://prod_user:CHANGE_THIS_PASSWORD@db-prod:5432/xiaoxia_prod
# Redis(必须修改)
REDIS_URL=redis://:CHANGE_THIS_PASSWORD@redis-prod:6379/0
# JWT(必须修改,至少 32 字符)
JWT_SECRET_KEY=CHANGE_THIS_TO_A_RANDOM_SECRET_KEY_AT_LEAST_32_CHARS
# SMTP(必须配置)
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your-email@gmail.com
SMTP_PASSWORD=your-app-specific-password
SMTP_FROM_EMAIL=noreply@yourdomain.com
# 应用配置
BASE_URL=https://yourdomain.com
# CORS(修改为实际域名)
CORS_ORIGINS=["https://yourdomain.com","https://app.yourdomain.com"]
# 监控(可选)
SENTRY_DSN=https://your-sentry-dsn@sentry.io/project-id