service_name: user-service
node_id: user-docker
environment: local
log:
  level: info
  format: json
  include_request_body: false
  include_response_body: false
  max_payload_bytes: 2048
grpc_addr: ":13005"
health_http_addr: ":13105"
mysql_dsn: "hyapp:hyapp@tcp(mysql:3306)/hyapp_user?parseTime=true&charset=utf8mb4&loc=UTC"
mysql_auto_migrate: false
id_generator:
  node_id: 1
display_user_id:
  allocate_max_attempts: 8
  change_cooldown_sec: 2592000
third_party:
  allowed_providers:
    - "firebase"
  firebase:
    project_id: "lalu-party"
    allowed_sign_in_providers:
      - "google.com"
invite_recharge_worker:
  enabled: true
mic_time_worker:
  enabled: true
cp_relationship_worker:
  enabled: true
  consumer_group: "hyapp-user-cp-room-outbox"
outbox_worker:
  enabled: true
  poll_interval: "1s"
  batch_size: 100
  publish_timeout: "3s"
rocketmq:
  # Docker 本地使用 compose RocketMQ 发布 user_outbox 事实。
  enabled: true
  name_servers: ["rocketmq-namesrv:9876"]
  name_server_domain: ""
  access_key: ""
  secret_key: ""
  namespace: ""
  wallet_outbox:
    enabled: true
    topic: "hyapp_wallet_outbox"
    consumer_group: "hyapp-user-invite-wallet-outbox"
    consumer_max_reconsume_times: 16
  room_outbox:
    enabled: true
    topic: "hyapp_room_outbox"
    consumer_group: "hyapp-user-mictime-room-outbox"
    consumer_max_reconsume_times: 16
  user_outbox:
    enabled: true
    topic: "hyapp_user_outbox"
    producer_group: "hyapp-user-outbox-producer"
login_risk:
  enabled: true
  redis_addr: "redis:6379"
  redis_password: ""
  redis_db: 0
  unsupported_countries:
    - "CN"
  blocked_ttl_sec: 2592000
  allowed_ttl_sec: 604800
  unknown_ttl_sec: 1800
  provider_timeout_ms: 800
  providers:
    - "edge_country"
room_service:
  enabled: true
  addr: "room-service:13001"
  request_timeout_ms: 3000
activity_service:
  enabled: true
  addr: "activity-service:13006"
  request_timeout_ms: 3000
tencent_im:
  # Docker 本地联调腾讯 IM 账号导入和封禁踢下线；必须和 gateway/room 使用同一个 IM 应用。
  enabled: true
  sdk_app_id: 20036101
  secret_key: "dcdf53135f27e7cf8541c4ae9798fb0cb2f0e4d6c5c20022dbaea053f35cbb8c"
  admin_identifier: "900100100"
  admin_user_sig_ttl_sec: 86400
  endpoint: "adminapisgp.im.qcloud.com"
  request_timeout_ms: 5000
jwt:
  issuer: "hyapp"
  access_token_ttl_sec: 1800
  refresh_token_ttl_sec: 2592000
  signing_alg: "HS256"
  signing_secret: "dev-shared-secret"
