central-security-test.yaml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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-test
  11. password: nacos-test
  12. namespace: ffd9f5b8-7150-4750-a51b-815f4e46c29c
  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-test
  26. password: nacos-test
  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: root
  36. password: 123456
  37. # rabbitmq配置
  38. rabbitmq:
  39. host: rabbitmq-hostname
  40. port: 5672
  41. username: central-test
  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: debug
  56. config:
  57. file-path:
  58. root: /
  59. ip-location:
  60. mmdbPath: 'geoip2/GeoLite2-City.mmdb'
  61. locales:
  62. - 'zh-CN'
  63. - 'en'
  64. warn:
  65. enabled: true
  66. webhookUrl: 'https://open.feishu.cn/open-apis/bot/v2/hook/14da6f76-75fd-427d-a8c7-35d71c76d34c'
  67. v8:
  68. report:
  69. enabled: true
  70. v8Host: 'https://i90okxj.v8dashen.com:4695'
  71. device-feature:
  72. ip-abnormal:
  73. # 是否开启IP异常统计
  74. enabledIpAbnormal: true
  75. # 是否标记广告异常
  76. markIfAbnormal: true
  77. # 如果达到阈值,告警
  78. warnIfAbnormal: true
  79. # 规则
  80. rules:
  81. # 包含的项目编码
  82. - includedProjectCodes:
  83. - 'project_playlet'
  84. # 忽略应用编码
  85. excludedAppCodes:
  86. []
  87. # 子网(例如:192.168.1.0/24)
  88. subnetPatterns:
  89. - '113.13.32.0/20'
  90. - '116.1.128.0/20'
  91. - '116.1.80.0/20'
  92. - '171.104.240.0/20'
  93. - '171.108.48.0/20'
  94. - '171.109.32.0/20'
  95. - '171.110.224.0/20'
  96. - '182.91.32.0/20'
  97. - '182.91.112.0/20'
  98. - '182.91.192.0/20'
  99. - '27.151.208.0/20'
  100. - '27.152.208.0/20'
  101. ad-event:
  102. ecpm-abnormal:
  103. # 是否开启
  104. enabledAdAbnormal: true
  105. # 广告异常是否标记
  106. markIfAbnormal: true
  107. # 广告异常是否告警
  108. warnIfAbnormal: true
  109. # 包含的项目编码
  110. includedProjectCodes:
  111. - 'project_playlet'
  112. # 忽略应用编码
  113. excludedAppCodes:
  114. []
  115. # 忽略广告平台 5: 百度
  116. excludedAdPlatforms:
  117. - 5
  118. # 忽略真实广告平台 5: 百度
  119. excludedAdRealPlatforms:
  120. - 5
  121. # 忽略广告类型
  122. excludedAdTypes:
  123. []
  124. # 统计多少秒内的广告
  125. timeRangeInSeconds: 600
  126. # 广告ecpm阈值超过多少会被统计数量+1,单位分
  127. ecpmThreshold: 100000
  128. # 达到统计阈值的数量
  129. countThreshold: 5
  130. device-risk:
  131. enabled: true
  132. riskLevels:
  133. - 3
  134. netease:
  135. yidun:
  136. risk:
  137. enabled: true
  138. riskLevels:
  139. - 3
  140. yidunConfigMap:
  141. { }
  142. defaultYidunConfig:
  143. secretId: '39e944c60cbc79e5525d0346a30e98fb'
  144. secretKey: 'df56d74d2ae89a621b50bee6950f1132'
  145. businessId: ''
  146. yidunRiskCheckRulesMap:
  147. register:
  148. - checkCountMin: 0
  149. checkCountMax: 4
  150. intervalCount: 1
  151. cooldownMillis: 0
  152. - checkCountMin: 5
  153. checkCountMax: -1
  154. intervalCount: 10
  155. cooldownMillis: 0
  156. transfer:
  157. - checkCountMin: 0
  158. checkCountMax: -1
  159. intervalCount: 1
  160. cooldownMillis: 0
  161. testEnabled: true
  162. device-block-rule:
  163. titlesMap:
  164. packageName: '包名'
  165. appVersionName: '版本'
  166. channelName: '渠道'
  167. oaid: 'OAID'
  168. editOptions:
  169. - matchProperty: 'packageName,appVersionName'
  170. matchPropertyTitle: '包名版本'
  171. matchValueTitles:
  172. - '包名'
  173. - '版本'
  174. matchTypeOptions:
  175. - 'each_equals'
  176. defaultBlockLevel: 0
  177. defaultMaxAutoBlockLevel: 10
  178. - matchProperty: 'packageName,appVersionName,channelName'
  179. matchPropertyTitle: '包名版本渠道'
  180. matchValueTitles:
  181. - '包名'
  182. - '版本'
  183. - '渠道'
  184. matchTypeOptions:
  185. - 'each_equals'
  186. defaultBlockLevel: 0
  187. defaultMaxAutoBlockLevel: 10
  188. - matchProperty: 'oaid'
  189. matchPropertyTitle: 'OAID'
  190. matchValueTitles:
  191. - 'OAID'
  192. matchTypeOptions:
  193. - 'equals'
  194. defaultBlockLevel: 0
  195. defaultMaxAutoBlockLevel: 0