service_name: admin-server
node_id: admin-hk-lighthouse
environment: prod
log:
  level: info
  format: json
  include_request_body: false
  include_response_body: false
  max_payload_bytes: 2048
http_addr: "127.0.0.1:13100"
mysql_dsn: "admin_user:REPLACE_ME@tcp(10.2.21.3:3306)/hyapp_admin?parseTime=true&charset=utf8mb4&loc=UTC"
user_mysql_dsn: "user_reader:REPLACE_ME@tcp(10.2.21.3:3306)/hyapp_user?parseTime=true&charset=utf8mb4&loc=UTC"
wallet_mysql_dsn: "wallet_reader:REPLACE_ME@tcp(10.2.21.3:3306)/hyapp_wallet?parseTime=true&charset=utf8mb4&loc=UTC"
robot_profile_source:
  mysql_dsn: "likei_reader:REPLACE_ME@tcp(10.2.21.3:3306)/likei?parseTime=true&charset=utf8mb4&loc=UTC"
  request_timeout: "5s"
mysql_auto_migrate: false
migrations:
  enabled: true
  # TAT/binary 部署使用宿主机路径；Docker 镜像部署时改为 /app/migrations。
  dir: "/opt/hyapp/admin-server/migrations"
  allow_checksum_repair: false
jwt_secret: "REPLACE_WITH_AT_LEAST_32_RANDOM_CHARS"
access_token_ttl: "12h"
refresh_token_ttl: "168h"
cors_allowed_origins:
  - "http://43.128.56.40"
  - "http://hyapp-platform.global-interaction.com"
  - "https://hyapp-platform.global-interaction.com"
  - "https://api-acc.global-interaction.com"
refresh_cookie_secure: true
refresh_cookie_same_site: "none"
bootstrap:
  # 仅首次初始化或显式 -bootstrap 时打开；生产常驻进程不要每次启动重放 seed。
  enabled: false
  seed_demo_data: false
  username: "admin"
  name: "admin"
  team: "平台运维"
  password: "REPLACE_WITH_TEMP_BOOTSTRAP_PASSWORD"
user_service:
  addr: "10.2.1.16:13005"
  request_timeout: "10s"
wallet_service:
  addr: "10.2.1.15:13004"
  request_timeout: "10s"
room_service:
  addr: "10.2.1.16:13001"
  request_timeout: "3s"
robot_service:
  addr: "10.2.1.16:13011"
  request_timeout: "3s"
activity_service:
  addr: "10.2.1.16:13006"
  request_timeout: "3s"
game_service:
  addr: "10.2.1.16:13008"
  request_timeout: "3s"
statistics_service:
  base_url: "http://10.2.1.16:13010"
  request_timeout: "3s"
tencent-cos:
  enabled: true
  secret-id: "REPLACE_ME"
  secret-key: "REPLACE_ME"
  bucket-name: "REPLACE_ME"
  region: "me-saudi-arabia"
  access-url: "https://media.example.com"
  object-prefix: "admin"
redis:
  enabled: true
  addr: "10.2.21.16:6379"
  password: "REPLACE_ME"
  db: 0
  key_prefix: "admin:"
jobs:
  enabled: true
  worker_interval: "5s"
  lease_ttl: "2m"
  max_attempts: 3
  artifact_dir: "/var/lib/hyapp/admin-server/storage/exports"
