feat(config): update rabbitmq and membership settings, add redis and cache configurations
This commit is contained in:
+12
-4
@@ -22,23 +22,31 @@ monitoring_database:
|
||||
max_open_conns: 10
|
||||
max_idle_conns: 2
|
||||
|
||||
redis:
|
||||
addr: localhost:6379
|
||||
db: 0
|
||||
|
||||
cache:
|
||||
driver: redis
|
||||
|
||||
log:
|
||||
level: info
|
||||
format: json
|
||||
|
||||
jwt:
|
||||
secret: "" # 由 OPS_JWT_SECRET 环境变量注入
|
||||
secret: "geo-ops-15645415841" # 必须通过 OPS_JWT_SECRET 环境变量提供
|
||||
access_ttl: 8h
|
||||
|
||||
default_admin:
|
||||
username: admin
|
||||
display_name: 系统管理员
|
||||
email: ""
|
||||
password: "" # 由 OPS_DEFAULT_ADMIN_PASSWORD 环境变量注入(仅在 operator_accounts 为空时生效)
|
||||
password: "liang0920" # 必须通过 OPS_DEFAULT_ADMIN_PASSWORD 提供(首次启动且表为空时使用)
|
||||
|
||||
admin_users:
|
||||
default_plan_code: free
|
||||
|
||||
ip_region:
|
||||
v4_xdb_path: /app/data/ip2region_v4.xdb
|
||||
v6_xdb_path: /app/data/ip2region_v6.xdb
|
||||
# 可选外部 xdb 路径;文件不存在时自动使用二进制 embed 内置数据。
|
||||
v4_xdb_path: ""
|
||||
v6_xdb_path: ""
|
||||
|
||||
Reference in New Issue
Block a user