service_name: notice-service
node_id: notice-prod-a
environment: prod
grpc_addr: ":13009"
health_http_addr: ":13109"
mysql_dsn: "hyapp:${MYSQL_PASSWORD}@tcp(${MYSQL_HOST}:3306)/hyapp_notice?parseTime=true&charset=utf8mb4&loc=UTC"
wallet_database: "hyapp_wallet"
room_database: "hyapp_room"
mysql_auto_migrate: false

tencent_im:
  enabled: true
  sdk_app_id: 1400000000
  secret_key: "${TENCENT_IM_SECRET_KEY}"
  admin_identifier: "administrator"
  admin_user_sig_ttl: 24h
  endpoint: "console.tim.qq.com"
  request_timeout: 5s
  group_id_prefix: ""

wallet_notice_worker:
  enabled: false
  poll_interval: 1s
  batch_size: 100
  lock_ttl: 30s
  publish_timeout: 3s
  max_retry_count: 10
  initial_backoff: 5s
  max_backoff: 5m

room_notice_worker:
  enabled: false
  poll_interval: 1s
  batch_size: 100
  lock_ttl: 30s
  publish_timeout: 3s
  max_retry_count: 10
  initial_backoff: 5s
  max_backoff: 5m

cp_notice_worker:
  enabled: false
  poll_interval: 1s
  batch_size: 100
  lock_ttl: 30s
  publish_timeout: 3s
  max_retry_count: 10
  initial_backoff: 5s
  max_backoff: 5m

rocketmq:
  enabled: true
  name_servers:
    - "TENCENT_ROCKETMQ_NAMESERVER:9876"
  name_server_domain: ""
  access_key: "TENCENT_ROCKETMQ_ACCESS_KEY"
  secret_key: "TENCENT_ROCKETMQ_SECRET_KEY"
  namespace: "hyapp-prod"
  wallet_outbox:
    enabled: true
    topic: "hyapp_wallet_outbox"
    consumer_group: "hyapp-notice-wallet-outbox"
    consumer_max_reconsume_times: 16
  room_outbox:
    enabled: true
    topic: "hyapp_room_outbox"
    consumer_group: "hyapp-notice-room-outbox"
    consumer_max_reconsume_times: 16
  user_outbox:
    enabled: true
    topic: "hyapp_user_outbox"
    consumer_group: "hyapp-notice-cp-user-outbox"
    consumer_max_reconsume_times: 16

log:
  level: info
  format: json
  max_payload_bytes: 2048
