central-security-dev.yaml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. server:
  2. port: 0 #端口
  3. spring:
  4. cloud:
  5. # nacos
  6. nacos:
  7. discovery:
  8. register-enabled: true
  9. server-addr: 127.0.0.1:8848
  10. username: nacos-dev
  11. password: nacos-dev
  12. namespace: 33360858-b0c2-4364-b8fb-d8879aa272a0
  13. circuitbreaker:
  14. sentinel:
  15. enabled: true
  16. sentinel:
  17. enabled: true
  18. transport:
  19. dashboard: 127.0.0.1:8858
  20. port: 0
  21. datasource:
  22. ds-flow-rules:
  23. nacos:
  24. server-addr: 127.0.0.1:8848
  25. username: nacos-dev
  26. password: nacos-dev
  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://127.0.0.1:3306/central?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&serverTimezone=Asia/Shanghai
  35. username: root
  36. password: 123456
  37. # rabbitmq配置
  38. rabbitmq:
  39. host: 127.0.0.1
  40. port: 5672
  41. # redis配置
  42. redis:
  43. host: 127.0.0.1
  44. port: 6379
  45. database: 0
  46. password: HorO9496sCopE
  47. clientName: ${spring.application.name}-redis
  48. # 日志配置
  49. logging:
  50. level:
  51. com:
  52. atmob:
  53. central: debug
  54. mybatis:
  55. configuration:
  56. logImpl: org.apache.ibatis.logging.stdout.StdOutImpl
  57. config:
  58. file-path:
  59. root: E:/workspace/central-platform/central-security/
  60. warn:
  61. enabled: true
  62. webhookUrl: 'https://open.feishu.cn/open-apis/bot/v2/hook/14da6f76-75fd-427d-a8c7-35d71c76d34c'
  63. v8:
  64. report:
  65. enabled: true
  66. v8Host: 'https://i90okxj.v8dashen.com:4695'
  67. device-feature:
  68. ip-abnormal:
  69. # 是否开启IP异常统计
  70. enabledIpAbnormal: true
  71. # 是否标记广告异常
  72. markIfAbnormal: true
  73. # 如果达到阈值,告警
  74. warnIfAbnormal: true
  75. # 规则
  76. rules:
  77. # 包含的项目编码
  78. - includedProjectCodes:
  79. - 'project_playlet'
  80. # 忽略应用编码
  81. excludedAppCodes:
  82. []
  83. # 子网(例如:192.168.1.0/24)
  84. subnetPatterns:
  85. - '113.13.32.0/20'
  86. - '116.1.128.0/20'
  87. - '116.1.80.0/20'
  88. - '171.104.240.0/20'
  89. - '171.108.48.0/20'
  90. - '171.109.32.0/20'
  91. - '171.110.224.0/20'
  92. - '182.91.32.0/20'
  93. - '182.91.112.0/20'
  94. - '182.91.192.0/20'
  95. - '27.151.208.0/20'
  96. - '27.152.208.0/20'
  97. ad-event:
  98. ecpm-abnormal:
  99. # 是否开启
  100. enabledAdAbnormal: true
  101. # 广告异常是否标记
  102. markIfAbnormal: true
  103. # 广告异常是否告警
  104. warnIfAbnormal: true
  105. # 包含的项目编码
  106. includedProjectCodes:
  107. - 'project_playlet'
  108. # 忽略应用编码
  109. excludedAppCodes:
  110. []
  111. # 忽略广告平台 5: 百度
  112. excludedAdPlatforms:
  113. - 5
  114. # 忽略真实广告平台 5: 百度
  115. excludedAdRealPlatforms:
  116. - 5
  117. # 忽略广告类型
  118. excludedAdTypes:
  119. []
  120. # 统计多少秒内的广告
  121. timeRangeInSeconds: 600
  122. # 广告ecpm阈值超过多少会被统计数量+1,单位分
  123. ecpmThreshold: 100000
  124. # 达到统计阈值的数量
  125. countThreshold: 5
  126. device-risk:
  127. enabled: true
  128. riskLevels:
  129. - 3
  130. netease:
  131. yidun:
  132. risk:
  133. enabled: true
  134. riskLevels:
  135. - 3
  136. yidunConfigMap:
  137. { }
  138. defaultYidunConfig:
  139. secretId: '39e944c60cbc79e5525d0346a30e98fb'
  140. secretKey: 'df56d74d2ae89a621b50bee6950f1132'
  141. businessId: ''
  142. yidunRiskCheckRulesMap:
  143. register:
  144. - checkCountMin: 0
  145. checkCountMax: 4
  146. intervalCount: 1
  147. cooldownMillis: 0
  148. - checkCountMin: 5
  149. checkCountMax: -1
  150. intervalCount: 10
  151. cooldownMillis: 0
  152. transfer:
  153. - checkCountMin: 0
  154. checkCountMax: -1
  155. intervalCount: 1
  156. cooldownMillis: 0
  157. testEnabled: true
  158. device-block-rule:
  159. titlesMap:
  160. packageName: '包名'
  161. appVersionName: '版本'
  162. channelName: '渠道'
  163. oaid: 'OAID'
  164. editOptions:
  165. - matchProperty: 'packageName,appVersionName'
  166. matchPropertyTitle: '包名版本'
  167. matchValueTitles:
  168. - '包名'
  169. - '版本'
  170. matchTypeOptions:
  171. - 'each_equals'
  172. defaultBlockLevel: 0
  173. defaultMaxAutoBlockLevel: 10
  174. - matchProperty: 'packageName,appVersionName,channelName'
  175. matchPropertyTitle: '包名版本渠道'
  176. matchValueTitles:
  177. - '包名'
  178. - '版本'
  179. - '渠道'
  180. matchTypeOptions:
  181. - 'each_equals'
  182. defaultBlockLevel: 0
  183. defaultMaxAutoBlockLevel: 10
  184. - matchProperty: 'oaid'
  185. matchPropertyTitle: 'OAID'
  186. matchValueTitles:
  187. - 'OAID'
  188. matchTypeOptions:
  189. - 'equals'
  190. defaultBlockLevel: 0
  191. defaultMaxAutoBlockLevel: 0