bef55bd11f
Open a separate pgx pool for the monitoring database, wire it into the SiteDomainMappingService, and surface its health in /readyz. Point compose at the dedicated monitoring-postgres service and align local/dev configs with the per-instance ports. Also reformat the site_domain_mapping types with gofmt while the files are touched. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
45 lines
820 B
YAML
45 lines
820 B
YAML
server:
|
|
port: 8090
|
|
mode: release
|
|
|
|
database:
|
|
host: postgres
|
|
port: 5432
|
|
user: geo
|
|
password: geo_dev
|
|
dbname: geo
|
|
sslmode: disable
|
|
max_open_conns: 10
|
|
max_idle_conns: 2
|
|
|
|
monitoring_database:
|
|
host: monitoring-postgres
|
|
port: 5432
|
|
user: geo
|
|
password: geo_dev
|
|
dbname: geo_monitoring
|
|
sslmode: disable
|
|
max_open_conns: 10
|
|
max_idle_conns: 2
|
|
|
|
log:
|
|
level: info
|
|
format: json
|
|
|
|
jwt:
|
|
secret: "" # 由 OPS_JWT_SECRET 环境变量注入
|
|
access_ttl: 8h
|
|
|
|
default_admin:
|
|
username: admin
|
|
display_name: 系统管理员
|
|
email: ""
|
|
password: "" # 由 OPS_DEFAULT_ADMIN_PASSWORD 环境变量注入(仅在 operator_accounts 为空时生效)
|
|
|
|
admin_users:
|
|
default_plan_code: free
|
|
|
|
ip_region:
|
|
v4_xdb_path: /app/data/ip2region_v4.xdb
|
|
v6_xdb_path: /app/data/ip2region_v6.xdb
|