169 lines
4.8 KiB
YAML
Raw Permalink 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"
money_region_sources:
- enabled: false
app_code: "yumi"
app_name: "Yumi"
sys_origin: "LIKEI"
mongo_uri: ""
mongo_database: "tarab_all"
mongo_collection: "sys_region_config"
request_timeout: "5s"
- enabled: false
app_code: "aslan"
app_name: "Aslan"
sys_origin: "ATYOU"
mongo_uri: ""
mongo_database: "atyou"
mongo_collection: "sys_region_config"
request_timeout: "5s"
# legacy App 的财务充值账单外部源:命中 app_code 后APP 充值详情直接读 likei Mongo 的内购明细。
finance_bill_sources:
- enabled: false
app_code: "yumi"
app_name: "Yumi"
sys_origin: "LIKEI"
mongo_uri: ""
mongo_database: "tarab_all"
mongo_collection: "in_app_purchase_details"
request_timeout: "5s"
google_package_name: ""
google_service_account_json: ""
google_service_account_file: ""
- enabled: false
app_code: "aslan"
app_name: "Aslan"
sys_origin: "ATYOU"
mongo_uri: ""
mongo_database: "atyou"
mongo_collection: "in_app_purchase_details"
request_timeout: "5s"
google_package_name: ""
google_service_account_json: ""
google_service_account_file: ""
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"
robot_service:
addr: "127.0.0.1:13011"
request_timeout: "3s"
activity_service:
addr: "127.0.0.1:13006"
request_timeout: "3s"
lucky_gift_service:
addr: "127.0.0.1:13013"
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"
dashboard_external_sources:
- enabled: false
type: "mysql"
app_code: "yumi"
app_name: "Yumi"
sys_origin: "LIKEI"
mysql_dsn: ""
stat_timezone: "Asia/Riyadh"
request_timeout: "5s"
- enabled: false
type: "aslan_mongo"
app_code: "aslan"
app_name: "Aslan"
sys_origin: "ATYOU"
mongo_uri: ""
mongo_database: "test"
# 金币代理发货充值金额来自 legacy RDS真实密码通过环境配置注入不能写入仓库 YAML。
legacy_mysql_dsn: "aslan:REPLACE_ME@tcp(sg-cdb-pa8hgyh1.sql.tencentcdb.com:29850)/atyou?parseTime=true&charset=utf8mb4&loc=Asia%2FShanghai&timeout=10s&readTimeout=30s&writeTimeout=30s"
legacy_wallet_database: "atyou_wallet"
stat_timezone: "Asia/Shanghai"
request_timeout: "5s"
legacy_coin_seller_recharge_sources:
- enabled: false
app_code: "yumi"
app_name: "Yumi"
sys_origin: "LIKEI"
app_mysql_dsn: ""
wallet_mysql_dsn: ""
request_timeout: "5s"
- enabled: false
app_code: "aslan"
app_name: "Aslan"
sys_origin: "ATYOU"
app_mysql_dsn: ""
wallet_mysql_dsn: ""
request_timeout: "5s"
finance_notifications:
dingtalk:
enabled: true
webhook_url: "https://oapi.dingtalk.com/robot/send?access_token=08ab491397880d167bb86168749eea5fff35aaf83eac9d033157ea2a7c96573c"
secret: "SEC893f814c59c7dde7916086d7b2a694ebc6796448c622c804ffa2c784c69adc03"
at_mobiles: []
at_all: false
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"