Files
geo/server/configs/ops-config.yaml
T
root 9bb7144593 refactor(kol-admin): move subscription admin endpoints from tenant-api to ops-api
Approving / manually binding / revoking KOL subscriptions belonged to the
operations console, not the tenant-admin role on tenant-api. Add a fresh
KolSubscriptionService + repository + handlers under the ops module with
its own list/manual-bind/approve/revoke routes, wire a Redis-backed cache
into ops-api so admin actions can invalidate tenant prompt caches, and
delete the tenant-side admin service/handler now that ops-web owns the UI.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-29 22:07:25 +08:00

53 lines
935 B
YAML

server:
port: 8090
mode: debug
database:
host: localhost
port: 5432
user: geo
password: geo_dev
dbname: geo
sslmode: disable
max_open_conns: 10
max_idle_conns: 2
monitoring_database:
host: localhost
port: 5433
user: geo
password: geo_dev
dbname: geo_monitoring
sslmode: disable
max_open_conns: 10
max_idle_conns: 2
redis:
addr: localhost:6379
db: 0
cache:
driver: redis
log:
level: info
format: json
jwt:
secret: "15645415841" # 必须通过 OPS_JWT_SECRET 环境变量提供
access_ttl: 8h
default_admin:
username: admin
display_name: 系统管理员
email: ""
password: "liang0920" # 必须通过 OPS_DEFAULT_ADMIN_PASSWORD 提供(首次启动且表为空时使用)
admin_users:
default_plan_code: free
ip_region:
# 可选外部 xdb 路径;文件不存在时自动使用二进制 embed 内置数据。
v4_xdb_path: ""
v6_xdb_path: ""