Files
geo/deploy/k3s/config/ops-config.yaml
T

71 lines
1.3 KiB
YAML
Raw Normal View History

server:
port: 8090
mode: release
# 生产环境请配置为真实运维后台域名,例如 https://ops.example.com。
# 留空时沿用开发环境 CORS 放开策略。
allowed_origins: []
security_headers:
enabled: true
2026-05-05 23:01:25 +08:00
trusted_proxies:
- 127.0.0.1
- ::1
- 10.42.0.0/16
- 10.43.0.0/16
- 172.16.0.0/12
database:
2026-05-03 15:04:08 +08:00
host: pgbouncer
port: 5432
user: geo
2026-05-03 15:04:08 +08:00
password: ${OPS_POSTGRES_PASSWORD:geo_dev}
dbname: geo
sslmode: disable
2026-05-03 15:04:08 +08:00
max_open_conns: 5
max_idle_conns: 2
monitoring_database:
2026-05-03 15:04:08 +08:00
host: monitoring-pgbouncer
port: 5432
user: geo
2026-05-03 15:04:08 +08:00
password: ${OPS_POSTGRES_PASSWORD:geo_dev}
dbname: geo_monitoring
sslmode: disable
2026-05-03 15:04:08 +08:00
max_open_conns: 5
max_idle_conns: 2
redis:
addr: redis:6379
db: 0
cache:
driver: redis
log:
level: info
format: json
jwt:
secret: "geo-ops-15645415841"
access_ttl: 8h
auth:
password_cipher:
# 留空 private_key_pem 时会在单进程内生成临时密钥;生产多 Pod 请在
# geo-rankly-app-secret/ops-config.local.yaml 中配置同一把私钥。
enabled: true
key_id: ops-password-rsa-oaep-v1
private_key_pem: ""
default_admin:
username: admin
display_name: system-admin
email: "liangxu0920@qq.com"
password: "liang0920"
admin_users:
default_plan_code: free
ip_region:
v4_xdb_path: ""
v6_xdb_path: ""