Files
photography/backend/etc/photography-api.yaml
xujiang 131ad0a928
Some checks failed
部署后端服务 / 🚀 构建并部署 (push) Has been cancelled
1
2025-07-16 11:30:31 +08:00

45 lines
838 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
LogLevel: info