2026-06-12 01:21:33 +08:00

78 lines
2.0 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

service_name: admin-server
node_id: admin-local
environment: local
log:
level: info
format: json
include_request_body: false
include_response_body: false
max_payload_bytes: 2048
http_addr: ":13100"
mysql_dsn: "hyapp:hyapp@tcp(127.0.0.1:23306)/hyapp_admin?parseTime=true&charset=utf8mb4&loc=UTC"
user_mysql_dsn: "hyapp:hyapp@tcp(127.0.0.1:23306)/hyapp_user?parseTime=true&charset=utf8mb4&loc=UTC"
wallet_mysql_dsn: "hyapp:hyapp@tcp(127.0.0.1:23306)/hyapp_wallet?parseTime=true&charset=utf8mb4&loc=UTC"
robot_profile_source:
mysql_dsn: ""
request_timeout: "5s"
mysql_auto_migrate: true
migrations:
enabled: true
dir: "migrations"
# 本地开发阶段允许历史 migration 文件被修改后修复 checksumstaging/prod 必须关闭。
allow_checksum_repair: true
jwt_secret: "dev-shared-secret"
access_token_ttl: "12h"
refresh_token_ttl: "168h"
cors_allowed_origins:
- "http://localhost:7001"
- "http://127.0.0.1:7001"
- "http://localhost:7002"
- "http://127.0.0.1:7002"
refresh_cookie_secure: false
refresh_cookie_same_site: "lax"
bootstrap:
enabled: true
seed_demo_data: true
username: "admin"
name: "admin"
team: "平台运维"
password: "admin123"
user_service:
addr: "127.0.0.1:13005"
request_timeout: "3s"
wallet_service:
addr: "127.0.0.1:13004"
request_timeout: "3s"
room_service:
addr: "127.0.0.1:13001"
request_timeout: "3s"
activity_service:
addr: "127.0.0.1:13006"
request_timeout: "3s"
game_service:
addr: "127.0.0.1:13008"
request_timeout: "3s"
statistics_service:
base_url: "http://127.0.0.1:13010"
request_timeout: "3s"
tencent-cos:
enabled: true
secret-id: "IKIDMchhZEfrsiNo472DAtTpzzmLjttkOnyu"
secret-key: "nMkbLsGRO6ZqulSyJQJ0UjjU0KSKxOgl"
bucket-name: "yumi-assets-1420526837"
region: "me-saudi-arabia"
access-url: "https://media.haiyihy.com"
object-prefix: "admin"
redis:
enabled: true
addr: "127.0.0.1:13379"
password: ""
db: 0
key_prefix: "admin:"
jobs:
enabled: true
worker_interval: "5s"
lease_ttl: "2m"
max_attempts: 3
artifact_dir: "storage/exports"