# 数据库配置 database: # 类型: sqlite, postgres, mysql type: "sqlite" # 数据源名称 (DSN) # 对于 sqlite, 这只是一个文件路径 dsn: "gemini-balancer.db" # 服务器配置 server: port: "9000" # 日志级别 log: level: "debug" # 日志轮转配置 max_size: 100 # MB max_backups: 7 # 保留文件数 max_age: 30 # 保留天数 compress: true # 压缩旧日志 redis: dsn: "redis://localhost:6379/0" session_secret: "a-very-long-and-super-secure-random-string-for-session-encryption-change-this" # [ADD] # [NEW] The master key for encrypting API keys. # MUST be 32 bytes (64 hex characters). # It is STRONGLY RECOMMENDED to set this via an environment variable instead (ENCRYPTION_KEY). encryption_key: "c7e0b5f8a2d1c9e8b3a4f5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c3d4e5f6"