New
This commit is contained in:
25
config.yaml
Normal file
25
config.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
# 数据库配置
|
||||
database:
|
||||
# 类型: sqlite, postgres, mysql
|
||||
type: "sqlite"
|
||||
# 数据源名称 (DSN)
|
||||
# 对于 sqlite, 这只是一个文件路径
|
||||
dsn: "gemini-balancer.db"
|
||||
|
||||
# 服务器配置
|
||||
server:
|
||||
port: "9000"
|
||||
|
||||
# 日志级别
|
||||
log:
|
||||
level: "info"
|
||||
|
||||
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"
|
||||
Reference in New Issue
Block a user