application-test.yml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. # ============================================================
  2. # 测试环境配置 (test)
  3. # ============================================================
  4. logging:
  5. file:
  6. path: /var/log/adx-tencent
  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-test.baidu.com"
  22. baidu-customer-name: dingzhaoming111
  23. baidu-secret: gk780scz3oi2
  24. # --- Tencent API ---
  25. tencent-api-base-url: "https://api.e.qq.com/v3.0"
  26. tencent-access-token: "YOUR_TEST_ACCESS_TOKEN"
  27. tencent-android-user-action-set-id: 0
  28. tencent-ios-user-action-set-id: 0
  29. tencent-act-map:
  30. "1": ACTIVATE_APP
  31. "2": PURCHASE
  32. "3": REGISTER
  33. "4": ONE_DAY_RETENTION
  34. "5": COMPLETE_ORDER
  35. "6": START_APP
  36. "7": CUSTOM
  37. "8": CUSTOM
  38. "9": CUSTOM
  39. # --- Redis ---
  40. redis-addr: "cq-crs-47p6pmwo.sql.tencentcdb.com:28036"
  41. redis-username: hcst
  42. redis-password: "hcst@2026qwe.."
  43. redis-db: 0
  44. redis-connect-timeout: 5s
  45. redis-command-timeout: 5s
  46. redis-shutdown-timeout: 100ms
  47. redis-validate-connection: true
  48. # --- TiDB/MySQL ---
  49. tidb-url: "jdbc:mysql://139.186.172.149:3390/adx_tencent?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&connectTimeout=5000&socketTimeout=30000"
  50. tidb-username: hcst
  51. tidb-password: "hcst@2025"
  52. tidb-minimum-idle: 2
  53. tidb-maximum-pool-size: 10
  54. tidb-connection-timeout: 10s
  55. tidb-validation-timeout: 3s
  56. tidb-idle-timeout: 5m
  57. tidb-max-lifetime: 10m
  58. tidb-keepalive-time: 2m
  59. report-database-name: "adx_report"
  60. ad-bid-report-enabled: true
  61. ad-bid-report-interval: 5m
  62. ad-bid-report-retention-days: 30
  63. ad-bid-report-archive-batch-size: 5000
  64. ad-bid-report-archive-max-batches-per-run: 20
  65. ad-bid-report-stats-run-times: ["01:00", "10:00", "17:00"]
  66. ad-bid-report-stats-lookback-days: 7
  67. # --- Task ---
  68. skip-leader-election: false
  69. # --- Conversion Sync ---
  70. conversion-sync-enabled: true
  71. conversion-sync-interval: 5s
  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: false
  82. honor-tag-event-sync-interval: 300s
  83. honor-tag-event-sync-redis-prefix: "adx:honor:tag-event:"
  84. # --- Vivo Callback ---
  85. vivo-conversion-base-url: "https://marketing-api.vivo.com.cn"
  86. vivo-redis-stream: "adx:vivo:events"
  87. vivo-callback-retry-enabled: false
  88. vivo-callback-retry-interval: 300s
  89. vivo-callback-retry-limit: 100
  90. vivo-tag-event-sync-enabled: false
  91. vivo-tag-event-sync-interval: 300s
  92. vivo-tag-event-sync-redis-prefix: "adx:vivo:tag-event:"
  93. vivo-redirect-uri: "/vivo/callback"
  94. vivo-token-redis-prefix: "adx:vivo:token:"
  95. vivo-advertiser-sync-enabled: true
  96. vivo-advertiser-sync-interval: 600s
  97. vivo-advertiser-redis-prefix: "adx:vivo:advertiser:"