application-dev.yml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. # ============================================================
  2. # 开发环境配置 (dev)
  3. # ============================================================
  4. logging:
  5. file:
  6. path: ./logs
  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. # --- Tencent API ---
  26. tencent-api-base-url: "https://api.e.qq.com/v3.0"
  27. tencent-access-token-redis-key: "adq:access_token:78578478"
  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. "5": COMPLETE_ORDER # 完成订单
  35. "6": OPTIMIZATIONGOAL_PROMOTION_VIEW_KEY_PAGE_UV # 启动应用
  36. "7": CUSTOM # 自定义-关键行为
  37. "8": CUSTOM # 自定义-7日留存
  38. "9": CUSTOM # 自定义-3日留存
  39. # --- Redis ---
  40. redis-addr: "cq-crs-47p6pmwo.sql.tencentcdb.com:28036"
  41. redis-username: "hcst"
  42. redis-password: "hcst@2026qwe.."
  43. redis-db: 5
  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"
  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: false
  61. ad-bid-report-interval: 5m
  62. ad-bid-report-retention-days: 30
  63. tracking-report-retention-days: 3
  64. ad-bid-report-archive-batch-size: 5000
  65. ad-bid-report-archive-max-batches-per-run: 20
  66. ad-bid-report-stats-run-times: ["01:00", "10:00", "17:00"]
  67. ad-bid-report-stats-lookback-days: 7
  68. # --- Task ---
  69. skip-leader-election: false
  70. # --- Conversion Sync ---
  71. conversion-sync-enabled: false
  72. conversion-sync-interval: 30s
  73. # --- Callback Retry ---
  74. callback-retry-enabled: false
  75. # --- Tag Event Sync(广告位回传方式 -> Redis)---
  76. tag-event-sync-enabled: false
  77. tag-event-sync-interval: 300s
  78. # --- Honor Tag Event Sync(荣耀广告位回传方式 -> Redis)---
  79. honor-tag-event-sync-enabled: false
  80. honor-tag-event-sync-interval: 300s
  81. honor-tag-event-sync-redis-prefix: "adx:honor:tag-event:"
  82. # --- Vivo Callback ---
  83. vivo-conversion-base-url: "https://marketing-api.vivo.com.cn"
  84. vivo-redis-stream: "adx:vivo:events"
  85. vivo-callback-retry-enabled: false
  86. vivo-callback-retry-interval: 300s
  87. vivo-callback-retry-limit: 100
  88. vivo-tag-event-sync-enabled: false
  89. vivo-tag-event-sync-interval: 300s
  90. vivo-tag-event-sync-redis-prefix: "adx:vivo:tag-event:"
  91. vivo-redirect-uri: "/vivo/callback"
  92. vivo-token-redis-prefix: "adx:vivo:token:"
  93. vivo-token-refresh-enabled: true
  94. vivo-token-refresh-interval: 3600s
  95. vivo-token-refresh-ahead: 86400s
  96. vivo-advertiser-sync-enabled: true
  97. vivo-advertiser-sync-interval: 600s
  98. vivo-advertiser-redis-prefix: "adx:vivo:advertiser:"