central-security-prod.yaml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  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: central1205
  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. 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. deviceId: '设备ID'
  169. editOptions:
  170. - matchProperty: 'packageName,appVersionName'
  171. matchPropertyTitle: '包名版本'
  172. matchValueTitles:
  173. - '包名'
  174. - '版本'
  175. matchTypeOptions:
  176. - 'each_equals'
  177. defaultBlockLevel: 0
  178. defaultMaxAutoBlockLevel: 10
  179. - matchProperty: 'packageName,appVersionName,channelName'
  180. matchPropertyTitle: '包名版本渠道'
  181. matchValueTitles:
  182. - '包名'
  183. - '版本'
  184. - '渠道'
  185. matchTypeOptions:
  186. - 'each_equals'
  187. defaultBlockLevel: 0
  188. defaultMaxAutoBlockLevel: 10
  189. - matchProperty: 'oaid'
  190. matchPropertyTitle: 'OAID'
  191. matchValueTitles:
  192. - 'OAID'
  193. matchTypeOptions:
  194. - 'equals'
  195. - 'any_equals'
  196. defaultBlockLevel: 0
  197. defaultMaxAutoBlockLevel: 1
  198. - matchProperty: 'deviceId'
  199. matchPropertyTitle: '设备ID'
  200. matchValueTitles:
  201. - '设备ID'
  202. matchTypeOptions:
  203. - 'equals'
  204. - 'any_equals'
  205. defaultBlockLevel: 0
  206. defaultMaxAutoBlockLevel: 1