central-security-prod.yaml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. server:
  2. port: 8080 #端口
  3. spring:
  4. cloud:
  5. # nacos
  6. nacos:
  7. discovery:
  8. register-enabled: true
  9. server-addr: nacos-server-hostname:8848
  10. username: nacos-prod
  11. password: centralprod
  12. namespace: a894fba3-ee6e-4dc7-938b-ad11112ccfa9
  13. circuitbreaker:
  14. sentinel:
  15. enabled: true
  16. sentinel:
  17. enabled: true
  18. transport:
  19. dashboard: sentinel-hostname:8858
  20. port: 8719
  21. datasource:
  22. ds-flow-rules:
  23. nacos:
  24. server-addr: nacos-server-hostname:8848
  25. username: nacos-prod
  26. password: centralprod
  27. namespace: 81037616-96ae-412c-a060-a633ba9731b9
  28. group-id: SENTINEL_GROUP
  29. data-id: ${spring.application.name}-flow-rules
  30. rule-type: flow
  31. data-type: json
  32. # 数据库配置
  33. datasource:
  34. url: jdbc:mysql://${ENV_DEFAULT_MYSQL_SERVER_ADDR}/central?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
  35. username: central
  36. password: central0510
  37. # rabbitmq配置
  38. rabbitmq:
  39. host: rabbitmq-hostname
  40. port: 5672
  41. username: central
  42. password: 240203qqqQQQWER
  43. # redis配置
  44. redis:
  45. host: redis-hostname
  46. port: 6379
  47. database: 0
  48. password: HorO9496sCopE
  49. clientName: ${spring.application.name}-redis
  50. # 日志配置
  51. logging:
  52. level:
  53. com:
  54. atmob:
  55. central: info
  56. config:
  57. file-path:
  58. root: /
  59. ad-event:
  60. ecpm-abnormal:
  61. # 是否开启
  62. enabledAdAbnormal: true
  63. # 广告异常是否标记
  64. markIfAbnormal: true
  65. # 广告异常是否告警
  66. warnIfAbnormal: true
  67. # 包含的项目编码
  68. includedProjectCodes:
  69. - 'project_playlet'
  70. # 忽略应用编码
  71. excludedAppCodes:
  72. []
  73. # 忽略广告平台 5: 百度
  74. excludedAdPlatforms:
  75. - 5
  76. # 忽略广告类型
  77. excludedAdTypes:
  78. []
  79. # 统计多少秒内的广告
  80. timeRangeInSeconds: 600
  81. # 广告ecpm阈值超过多少会被统计数量+1,单位分
  82. ecpmThreshold: 100000
  83. # 达到统计阈值的数量
  84. countThreshold: 5
  85. device-risk:
  86. enabled: true
  87. riskLevels:
  88. - 3
  89. netease:
  90. yidun:
  91. risk:
  92. enabled: true
  93. riskLevels:
  94. - 3
  95. yidunConfigMap:
  96. { }
  97. defaultYidunConfig:
  98. secretId: '39e944c60cbc79e5525d0346a30e98fb'
  99. secretKey: 'df56d74d2ae89a621b50bee6950f1132'
  100. businessId: ''
  101. yidunRiskCheckRulesMap:
  102. register:
  103. - checkCountMin: 0
  104. checkCountMax: 4
  105. intervalCount: 1
  106. cooldownMillis: 0
  107. - checkCountMin: 5
  108. checkCountMax: -1
  109. intervalCount: 10
  110. cooldownMillis: 0
  111. transfer:
  112. - checkCountMin: 0
  113. checkCountMax: -1
  114. intervalCount: 1
  115. cooldownMillis: 0
  116. testEnabled: true
  117. device-block-rule:
  118. titlesMap:
  119. packageName: '包名'
  120. appVersionName: '版本'
  121. channelName: '渠道'
  122. oaid: 'OAID'
  123. deviceId: '设备ID'
  124. editOptions:
  125. - matchProperty: 'packageName,appVersionName'
  126. matchPropertyTitle: '包名版本'
  127. matchValueTitles:
  128. - '包名'
  129. - '版本'
  130. matchTypeOptions:
  131. - 'each_equals'
  132. defaultBlockLevel: 0
  133. defaultMaxAutoBlockLevel: 10
  134. - matchProperty: 'packageName,appVersionName,channelName'
  135. matchPropertyTitle: '包名版本渠道'
  136. matchValueTitles:
  137. - '包名'
  138. - '版本'
  139. - '渠道'
  140. matchTypeOptions:
  141. - 'each_equals'
  142. defaultBlockLevel: 0
  143. defaultMaxAutoBlockLevel: 10
  144. - matchProperty: 'oaid'
  145. matchPropertyTitle: 'OAID'
  146. matchValueTitles:
  147. - 'OAID'
  148. matchTypeOptions:
  149. - 'equals'
  150. - 'any_equals'
  151. defaultBlockLevel: 0
  152. defaultMaxAutoBlockLevel: 1
  153. - matchProperty: 'deviceId'
  154. matchPropertyTitle: '设备ID'
  155. matchValueTitles:
  156. - '设备ID'
  157. matchTypeOptions:
  158. - 'equals'
  159. - 'any_equals'
  160. defaultBlockLevel: 0
  161. defaultMaxAutoBlockLevel: 1