Files
photography/backend/etc/photography-api.yaml
xujiang 28eef98a0b
Some checks failed
部署后端服务 / 🚀 构建并部署 (push) Failing after 7m9s
fix: 修复YAML配置文件字段格式
- 将LogLevel字段改为小写log_level,以符合YAML规范
2025-07-16 11:37:21 +08:00

45 lines
839 B
YAML

Name: photography-api
Host: 0.0.0.0
Port: 8080
# 数据库配置
Database:
Driver: postgres
Host: postgres_db
Port: 5432
Database: photography
Username: photography
Password: fc34ewdc.d3we-s
Charset: utf8mb4
SSLMode: disable
MaxOpenConns: 100
MaxIdleConns: 10
# 认证配置
auth:
access_secret: photography-secret-key-2024
access_expire: 86400
# 文件上传配置
file_upload:
max_size: 10485760 # 10MB
upload_dir: uploads
allowed_types:
- image/jpeg
- image/png
- image/gif
- image/webp
# 中间件配置
middleware:
enable_cors: true
enable_logger: true
enable_error_handle: true
cors_origins:
- http://localhost:3000
- http://localhost:3001
- http://localhost:5173
- https://admin.photography.iriver.top
- https://photography.iriver.top
log_level: info