Some checks failed
部署后端服务 / 🚀 构建并部署 (push) Failing after 7m20s
- 重构根目录CLAUDE.md为项目总览(60行精简版) - 细化backend模块CLAUDE.md为开发指南 - 新增各子模块CLAUDE.md文件: - api/desc/ - API定义模块 - internal/handler/ - 请求处理器 - internal/logic/ - 业务逻辑层 - internal/model/ - 数据模型层 - internal/middleware/ - 中间件层 - internal/svc/ - 服务上下文 - configs/ - 配置目录 - deploy/ - 部署配置 - pkg/ - 公共库 - scripts/ - 工具脚本 - configs/sql/ - SQL脚本 - 修复PostgreSQL SSL配置参数 - 清理旧的backend-old目录 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
45 lines
840 B
YAML
45 lines
840 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
|
|
ssl_mode: 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
|