# 开发环境配置 app: name: "Photography Portfolio Dev" version: "1.0.0" environment: "development" port: 8080 debug: true # 数据库配置 database: host: "localhost" port: 5432 username: "postgres" password: "password" database: "photography_dev" ssl_mode: "disable" max_open_conns: 50 max_idle_conns: 5 conn_max_lifetime: 300 # Redis配置 redis: host: "localhost" port: 6379 password: "" database: 1 pool_size: 10 min_idle_conns: 2 # JWT配置 jwt: secret: "dev-secret-key-not-for-production" expires_in: "24h" refresh_expires_in: "168h" # 存储配置 storage: type: "local" local: base_path: "./uploads" base_url: "http://localhost:8080/uploads" s3: region: "us-east-1" bucket: "photography-dev-bucket" access_key: "" secret_key: "" endpoint: "" # 上传配置 upload: max_file_size: 104857600 # 100MB allowed_types: - "image/jpeg" - "image/jpg" - "image/png" - "image/gif" - "image/webp" - "image/tiff" - "image/bmp" thumbnail_sizes: - name: "thumbnail" width: 200 height: 200 - name: "medium" width: 800 height: 600 - name: "large" width: 1920 height: 1080 # 日志配置 logger: level: "debug" format: "text" output: "stdout" filename: "logs/dev.log" max_size: 50 max_age: 7 compress: false # CORS配置 cors: allowed_origins: - "http://localhost:3000" - "http://localhost:3001" - "http://localhost:5173" allowed_methods: - "GET" - "POST" - "PUT" - "DELETE" - "PATCH" - "OPTIONS" allowed_headers: - "Content-Type" - "Authorization" - "X-Requested-With" - "Origin" allow_credentials: true # 限流配置 rate_limit: enabled: false requests_per_minute: 1000 burst: 2000