2026-04-28 11:32:50 +08:00
|
|
|
server:
|
|
|
|
|
port: 8090
|
|
|
|
|
mode: debug
|
2026-05-14 11:05:20 +08:00
|
|
|
# 生产环境请配置为真实运维后台域名,例如 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
|
2026-04-28 11:32:50 +08:00
|
|
|
|
|
|
|
|
database:
|
|
|
|
|
host: localhost
|
|
|
|
|
port: 5432
|
|
|
|
|
user: geo
|
|
|
|
|
password: geo_dev
|
|
|
|
|
dbname: geo
|
|
|
|
|
sslmode: disable
|
2026-05-03 15:04:08 +08:00
|
|
|
max_open_conns: 5
|
2026-04-28 11:32:50 +08:00
|
|
|
max_idle_conns: 2
|
|
|
|
|
|
2026-04-29 16:02:11 +08:00
|
|
|
monitoring_database:
|
|
|
|
|
host: localhost
|
2026-04-29 17:10:48 +08:00
|
|
|
port: 5433
|
2026-04-29 16:02:11 +08:00
|
|
|
user: geo
|
|
|
|
|
password: geo_dev
|
|
|
|
|
dbname: geo_monitoring
|
|
|
|
|
sslmode: disable
|
2026-05-03 15:04:08 +08:00
|
|
|
max_open_conns: 5
|
2026-04-29 16:02:11 +08:00
|
|
|
max_idle_conns: 2
|
|
|
|
|
|
2026-04-29 22:07:25 +08:00
|
|
|
redis:
|
|
|
|
|
addr: localhost:6379
|
|
|
|
|
db: 0
|
|
|
|
|
|
|
|
|
|
cache:
|
|
|
|
|
driver: redis
|
|
|
|
|
|
2026-05-25 19:23:49 +08:00
|
|
|
object_storage:
|
|
|
|
|
provider: aliyun
|
|
|
|
|
endpoint: https://oss-cn-shanghai.aliyuncs.com
|
|
|
|
|
access_key: LTAI5tAEj8euR8B1gXzMoG84
|
|
|
|
|
secret_key: lJPrKo9ViyHJE8UWIMmMCY0B6Je8v2
|
|
|
|
|
bucket: shengxintui
|
|
|
|
|
use_ssl: true
|
|
|
|
|
public_base_url: ""
|
|
|
|
|
bucket_acl: private
|
|
|
|
|
object_acl: default
|
|
|
|
|
signed_url_ttl: 30m
|
|
|
|
|
region: cn-shanghai
|
2026-05-26 01:19:01 +08:00
|
|
|
force_path_style: false
|
2026-05-25 19:23:49 +08:00
|
|
|
|
2026-04-28 11:32:50 +08:00
|
|
|
log:
|
|
|
|
|
level: info
|
|
|
|
|
format: json
|
|
|
|
|
|
|
|
|
|
jwt:
|
|
|
|
|
secret: "15645415841" # 必须通过 OPS_JWT_SECRET 环境变量提供
|
|
|
|
|
access_ttl: 8h
|
|
|
|
|
|
2026-05-14 11:05:20 +08:00
|
|
|
auth:
|
|
|
|
|
password_cipher:
|
|
|
|
|
# 留空 private_key_pem 时会在单进程内生成临时密钥;生产多实例请通过环境变量注入同一把私钥。
|
|
|
|
|
enabled: true
|
|
|
|
|
key_id: ops-password-rsa-oaep-v1
|
|
|
|
|
private_key_pem: ""
|
|
|
|
|
|
2026-04-28 11:32:50 +08:00
|
|
|
default_admin:
|
|
|
|
|
username: admin
|
|
|
|
|
display_name: 系统管理员
|
|
|
|
|
email: ""
|
|
|
|
|
password: "liang0920" # 必须通过 OPS_DEFAULT_ADMIN_PASSWORD 提供(首次启动且表为空时使用)
|
2026-04-29 00:02:46 +08:00
|
|
|
|
|
|
|
|
admin_users:
|
|
|
|
|
default_plan_code: free
|
2026-04-29 00:46:37 +08:00
|
|
|
|
|
|
|
|
ip_region:
|
|
|
|
|
# 可选外部 xdb 路径;文件不存在时自动使用二进制 embed 内置数据。
|
|
|
|
|
v4_xdb_path: ""
|
|
|
|
|
v6_xdb_path: ""
|