application-prod.yml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. # ============================================================
  2. # 生产环境配置 (prod)
  3. # ============================================================
  4. logging:
  5. file:
  6. path: /data/webapp/tencent-baidu-tracking/log
  7. baidu:
  8. clue:
  9. base-url: "https://cpu-bside.baidu.com"
  10. appsid: ""
  11. token: ""
  12. public-key-path: "src/main/resources/keys/baidu-clue-rsa-public-key.pem"
  13. media-type: 4
  14. media-url: ""
  15. media-website: ""
  16. connect-timeout-seconds: 10
  17. read-timeout-seconds: 30
  18. adx:
  19. # --- Baidu ADX ---
  20. baidu-adx-endpoint: "http://adsp.baidu.com/jbssp"
  21. baidu-conversion-base-url: "https://media-interact.baidu.com"
  22. baidu-customer-name: "dingzhaoming111"
  23. baidu-secret: "gk780scz3oi2"
  24. baidu-tracking-max-redirects: 20
  25. baidu-tracking-max-500-retries: 3
  26. # --- Tencent API ---
  27. tencent-access-token-redis-key: "adq:access_token:78578478"
  28. tencent-account-id: 78578478
  29. tencent-api-base-url: "https://api.e.qq.com/v3.0"
  30. tencent-android-user-action-set-id: 1222435591
  31. tencent-ios-user-action-set-id: 1222435768
  32. tencent-act-map:
  33. "1": ACTIVATE_APP # 激活
  34. "2": PURCHASE # 付费
  35. "3": REGISTER # 注册
  36. "4": START_APP # 次日留存 (length_of_stay=1)
  37. "5": COMPLETE_ORDER # 下单
  38. "6": VIEW_CONTENT # 关键页面访问
  39. "7": CUSTOM # 关键行为
  40. "8": START_APP # 7日留存 (length_of_stay=7)
  41. "9": START_APP # 3日留存 (length_of_stay=3)
  42. # --- Redis ---
  43. redis-addr: "172.30.0.25:6379"
  44. redis-username: "hcst"
  45. redis-password: "hcst@2026qwe.."
  46. redis-db: 5
  47. bid-ttl: 36h
  48. redis-connect-timeout: 5s
  49. redis-command-timeout: 5s
  50. redis-shutdown-timeout: 100ms
  51. redis-validate-connection: true
  52. redis-pool-max-active: 64
  53. redis-pool-max-idle: 16
  54. redis-pool-min-idle: 4
  55. redis-pool-max-wait: 2s
  56. redis-pool-test-on-borrow: true
  57. redis-pool-test-while-idle: true
  58. # --- TiDB/MySQL ---
  59. tidb-url: "jdbc:mysql://172.30.0.36:3390/adx_tencent?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true"
  60. tidb-username: "hcst"
  61. tidb-password: "hcst@2025"
  62. tidb-minimum-idle: 1
  63. tidb-maximum-pool-size: 10
  64. tidb-connection-timeout: 10s
  65. tidb-validation-timeout: 3s
  66. tidb-idle-timeout: 90s
  67. tidb-max-lifetime: 2m
  68. tidb-keepalive-time: 30s
  69. report-database-name: "adx_report"
  70. ad-bid-report-enabled: true
  71. ad-bid-report-interval: 5m
  72. ad-bid-report-retention-days: 30
  73. tracking-report-retention-days: 3
  74. ad-bid-report-archive-batch-size: 5000
  75. ad-bid-report-archive-max-batches-per-run: 20
  76. ad-bid-report-stats-run-times: ["01:00", "10:00", "17:00"]
  77. ad-bid-report-stats-lookback-days: 7
  78. # --- Task ---
  79. skip-leader-election: false
  80. # --- Conversion Sync ---
  81. conversion-sync-enabled: true
  82. conversion-sync-interval: 300s
  83. conversion-sync-date-offset-days: 0
  84. conversion-sync-page-size: 1
  85. # --- Callback Retry ---
  86. callback-retry-enabled: true
  87. callback-retry-interval: 300s
  88. # --- Tag Event Sync(广告位回传方式 -> Redis)---
  89. tag-event-sync-enabled: true
  90. tag-event-sync-interval: 300s
  91. account-tag-event-sync-enabled: true
  92. account-tag-event-sync-interval: 300s
  93. account-tag-event-sync-redis-prefix: "adx:tencent:account-tag-event:"
  94. # --- Honor Tag Event Sync(荣耀广告位回传方式 -> Redis)---
  95. honor-tag-event-sync-enabled: true
  96. honor-tag-event-sync-interval: 300s
  97. honor-tag-event-sync-redis-prefix: "adx:honor:tag-event:"
  98. # --- Vivo Callback ---
  99. vivo-conversion-base-url: "https://marketing-api.vivo.com.cn"
  100. vivo-redis-stream: "adx:vivo:events"
  101. vivo-callback-retry-enabled: true
  102. vivo-callback-retry-interval: 300s
  103. vivo-callback-retry-limit: 100
  104. vivo-tag-event-sync-enabled: true
  105. vivo-tag-event-sync-interval: 300s
  106. vivo-tag-event-sync-redis-prefix: "adx:vivo:tag-event:"
  107. vivo-redirect-uri: "/vivo/callback"
  108. vivo-token-redis-prefix: "adx:vivo:token:"
  109. vivo-token-refresh-enabled: true
  110. vivo-token-refresh-interval: 3600s
  111. vivo-token-refresh-ahead: 86400s
  112. vivo-advertiser-sync-enabled: true
  113. vivo-advertiser-sync-interval: 600s
  114. vivo-advertiser-redis-prefix: "adx:vivo:advertiser:"