# ============================================================ # 生产环境配置 (prod) # ============================================================ logging: file: path: /data/webapp/tencent-baidu-tracking/log baidu: clue: base-url: "https://cpu-bside.baidu.com" appsid: "" token: "" public-key-path: "src/main/resources/keys/baidu-clue-rsa-public-key.pem" media-type: 4 media-url: "" media-website: "" connect-timeout-seconds: 10 read-timeout-seconds: 30 adx: # --- Baidu ADX --- baidu-adx-endpoint: "http://adsp.baidu.com/jbssp" baidu-conversion-base-url: "https://media-interact.baidu.com" baidu-customer-name: "dingzhaoming111" baidu-secret: "gk780scz3oi2" baidu-tracking-max-redirects: 20 baidu-tracking-max-500-retries: 3 # --- Tencent API --- tencent-access-token-redis-key: "adq:access_token:78578478" tencent-account-id: 78578478 tencent-api-base-url: "https://api.e.qq.com/v3.0" tencent-android-user-action-set-id: 1222435591 tencent-ios-user-action-set-id: 1222435768 tencent-act-map: "1": ACTIVATE_APP # 激活 "2": PURCHASE # 付费 "3": REGISTER # 注册 "4": START_APP # 次日留存 (length_of_stay=1) "5": COMPLETE_ORDER # 下单 "6": VIEW_CONTENT # 关键页面访问 "7": CUSTOM # 关键行为 "8": START_APP # 7日留存 (length_of_stay=7) "9": START_APP # 3日留存 (length_of_stay=3) # --- Redis --- redis-addr: "172.30.0.25:6379" redis-username: "hcst" redis-password: "hcst@2026qwe.." redis-db: 5 bid-ttl: 36h redis-connect-timeout: 5s redis-command-timeout: 5s redis-shutdown-timeout: 100ms redis-validate-connection: true redis-pool-max-active: 64 redis-pool-max-idle: 16 redis-pool-min-idle: 4 redis-pool-max-wait: 2s redis-pool-test-on-borrow: true redis-pool-test-while-idle: true # --- TiDB/MySQL --- tidb-url: "jdbc:mysql://172.30.0.36:3390/adx_tencent?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true" tidb-username: "hcst" tidb-password: "hcst@2025" tidb-minimum-idle: 1 tidb-maximum-pool-size: 10 tidb-connection-timeout: 10s tidb-validation-timeout: 3s tidb-idle-timeout: 90s tidb-max-lifetime: 2m tidb-keepalive-time: 30s report-database-name: "adx_report" ad-bid-report-enabled: true ad-bid-report-interval: 5m ad-bid-report-retention-days: 30 tracking-report-retention-days: 3 ad-bid-report-archive-batch-size: 5000 ad-bid-report-archive-max-batches-per-run: 20 ad-bid-report-stats-run-times: ["01:00", "10:00", "17:00"] ad-bid-report-stats-lookback-days: 7 # --- Task --- skip-leader-election: false # --- Conversion Sync --- conversion-sync-enabled: true conversion-sync-interval: 300s conversion-sync-date-offset-days: 0 conversion-sync-page-size: 1 # --- Callback Retry --- callback-retry-enabled: true callback-retry-interval: 300s # --- Tag Event Sync(广告位回传方式 -> Redis)--- tag-event-sync-enabled: true tag-event-sync-interval: 300s account-tag-event-sync-enabled: true account-tag-event-sync-interval: 300s account-tag-event-sync-redis-prefix: "adx:tencent:account-tag-event:" # --- Honor Tag Event Sync(荣耀广告位回传方式 -> Redis)--- honor-tag-event-sync-enabled: true honor-tag-event-sync-interval: 300s honor-tag-event-sync-redis-prefix: "adx:honor:tag-event:" # --- Vivo Callback --- vivo-conversion-base-url: "https://marketing-api.vivo.com.cn" vivo-redis-stream: "adx:vivo:events" vivo-callback-retry-enabled: true vivo-callback-retry-interval: 300s vivo-callback-retry-limit: 100 vivo-tag-event-sync-enabled: true vivo-tag-event-sync-interval: 300s vivo-tag-event-sync-redis-prefix: "adx:vivo:tag-event:" vivo-redirect-uri: "/vivo/callback" vivo-token-redis-prefix: "adx:vivo:token:" vivo-token-refresh-enabled: true vivo-token-refresh-interval: 3600s vivo-token-refresh-ahead: 86400s vivo-advertiser-sync-enabled: true vivo-advertiser-sync-interval: 600s vivo-advertiser-redis-prefix: "adx:vivo:advertiser:"