application-prod.yml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. # --- Tencent API ---
  25. tencent-access-token-redis-key: "adq:access_token:78578478"
  26. tencent-account-id: 78578478
  27. tencent-api-base-url: "https://api.e.qq.com/v3.0"
  28. tencent-android-user-action-set-id: 1222435591
  29. tencent-ios-user-action-set-id: 1222435768
  30. tencent-act-map:
  31. "1": ACTIVATE_APP # 激活
  32. "2": PURCHASE # 付费
  33. "3": REGISTER # 注册
  34. "4": START_APP # 次日留存 (length_of_stay=1)
  35. "5": COMPLETE_ORDER # 下单
  36. "6": VIEW_CONTENT # 关键页面访问
  37. "7": CUSTOM # 关键行为
  38. "8": START_APP # 7日留存 (length_of_stay=7)
  39. "9": START_APP # 3日留存 (length_of_stay=3)
  40. # --- Redis ---
  41. redis-addr: "172.30.0.25:6379"
  42. redis-username: "hcst"
  43. redis-password: "hcst@2026qwe.."
  44. redis-db: 5
  45. redis-connect-timeout: 5s
  46. redis-command-timeout: 5s
  47. redis-shutdown-timeout: 100ms
  48. redis-validate-connection: true
  49. # --- TiDB/MySQL ---
  50. tidb-url: "jdbc:mysql://172.30.0.36:3390/adx_tencent?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true"
  51. tidb-username: "hcst"
  52. tidb-password: "hcst@2025"
  53. tidb-minimum-idle: 1
  54. tidb-maximum-pool-size: 10
  55. tidb-connection-timeout: 10s
  56. tidb-validation-timeout: 3s
  57. tidb-idle-timeout: 90s
  58. tidb-max-lifetime: 2m
  59. tidb-keepalive-time: 30s
  60. report-database-name: "adx_report"
  61. ad-bid-report-enabled: true
  62. ad-bid-report-interval: 30m
  63. ad-bid-report-retention-days: 30
  64. ad-bid-report-archive-batch-size: 5000
  65. ad-bid-report-archive-max-batches-per-run: 20
  66. ad-bid-report-stats-lookback-days: 30
  67. # --- Task ---
  68. skip-leader-election: false
  69. # --- Conversion Sync ---
  70. conversion-sync-enabled: true
  71. conversion-sync-interval: 300s
  72. conversion-sync-date-offset-days: 0
  73. conversion-sync-page-size: 1
  74. # --- Callback Retry ---
  75. callback-retry-enabled: true
  76. callback-retry-interval: 300s
  77. # --- Tag Event Sync(广告位回传方式 -> Redis)---
  78. tag-event-sync-enabled: true
  79. tag-event-sync-interval: 300s
  80. # --- Honor Tag Event Sync(荣耀广告位回传方式 -> Redis)---
  81. honor-tag-event-sync-enabled: true
  82. honor-tag-event-sync-interval: 300s
  83. honor-tag-event-sync-redis-prefix: "adx:honor:tag-event:"