central-security-test.yaml 5.1 KB

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