Some checks failed
部署管理后台 / 🧪 测试和构建 (push) Failing after 1m25s
部署管理后台 / 🔒 安全扫描 (push) Has been skipped
部署后端服务 / 🚀 构建并部署 (push) Failing after 47s
部署前端网站 / 🧪 测试和构建 (push) Failing after 2m36s
部署管理后台 / 🚀 部署到生产环境 (push) Has been skipped
部署后端服务 / 🔄 回滚部署 (push) Failing after 3s
部署前端网站 / 🚀 部署到生产环境 (push) Has been skipped
部署管理后台 / 🔄 回滚部署 (push) Has been skipped
- 添加 backend/.env.example 环境变量模板 - 添加 backend/docker-compose.example.yml Docker 配置示例 - 更新 frontend/.env.local 配置注释
42 lines
829 B
Plaintext
42 lines
829 B
Plaintext
# 数据库配置 (连接现有的PostgreSQL)
|
|
DB_HOST=localhost
|
|
DB_PORT=5432
|
|
DB_NAME=photography
|
|
DB_USER=postgres
|
|
DB_PASSWORD=your_database_password
|
|
DB_SSLMODE=disable
|
|
|
|
# Redis配置 (连接现有的Redis)
|
|
REDIS_HOST=localhost
|
|
REDIS_PORT=6379
|
|
REDIS_PASSWORD=
|
|
REDIS_DB=0
|
|
|
|
# JWT配置
|
|
JWT_SECRET=your_jwt_secret_key_here_make_it_long_and_random
|
|
JWT_EXPIRE=24h
|
|
|
|
# 服务配置
|
|
APP_ENV=production
|
|
APP_PORT=8080
|
|
APP_HOST=0.0.0.0
|
|
|
|
# 文件上传配置
|
|
UPLOAD_DIR=/app/uploads
|
|
MAX_FILE_SIZE=10485760 # 10MB
|
|
ALLOWED_FILE_TYPES=image/jpeg,image/png,image/gif,image/webp
|
|
|
|
# CORS配置
|
|
CORS_ORIGINS=https://photography.iriver.top,https://admin.photography.iriver.top
|
|
|
|
# 日志配置
|
|
LOG_LEVEL=info
|
|
|
|
# 中间件配置
|
|
ENABLE_CORS=true
|
|
ENABLE_LOGGER=true
|
|
ENABLE_ERROR_HANDLE=true
|
|
|
|
# 安全配置
|
|
RATE_LIMIT_REQUESTS=100
|
|
RATE_LIMIT_WINDOW=60s |