central-security-prod.yaml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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. ip-location:
  60. mmdbPath: 'geoip2/GeoLite2-City.mmdb'
  61. locales:
  62. - 'en'
  63. ad-event:
  64. ecpm-abnormal:
  65. # 是否开启
  66. enabledAdAbnormal: true
  67. # 广告异常是否标记
  68. markIfAbnormal: true
  69. # 广告异常是否告警
  70. warnIfAbnormal: true
  71. # 包含的项目编码
  72. includedProjectCodes:
  73. - 'project_playlet'
  74. # 忽略应用编码
  75. excludedAppCodes:
  76. []
  77. # 忽略广告平台 5: 百度
  78. excludedAdPlatforms:
  79. - 5
  80. # 忽略广告类型
  81. excludedAdTypes:
  82. []
  83. # 统计多少秒内的广告
  84. timeRangeInSeconds: 600
  85. # 广告ecpm阈值超过多少会被统计数量+1,单位分
  86. ecpmThreshold: 100000
  87. # 达到统计阈值的数量
  88. countThreshold: 5
  89. device-risk:
  90. enabled: true
  91. riskLevels:
  92. - 3
  93. netease:
  94. yidun:
  95. risk:
  96. enabled: true
  97. riskLevels:
  98. - 3
  99. yidunConfigMap:
  100. { }
  101. defaultYidunConfig:
  102. secretId: '39e944c60cbc79e5525d0346a30e98fb'
  103. secretKey: 'df56d74d2ae89a621b50bee6950f1132'
  104. businessId: ''
  105. yidunRiskCheckRulesMap:
  106. register:
  107. - checkCountMin: 0
  108. checkCountMax: 4
  109. intervalCount: 1
  110. cooldownMillis: 0
  111. - checkCountMin: 5
  112. checkCountMax: -1
  113. intervalCount: 10
  114. cooldownMillis: 0
  115. transfer:
  116. - checkCountMin: 0
  117. checkCountMax: -1
  118. intervalCount: 1
  119. cooldownMillis: 0
  120. testEnabled: true
  121. device-block-rule:
  122. titlesMap:
  123. packageName: '包名'
  124. appVersionName: '版本'
  125. channelName: '渠道'
  126. oaid: 'OAID'
  127. deviceId: '设备ID'
  128. editOptions:
  129. - matchProperty: 'packageName,appVersionName'
  130. matchPropertyTitle: '包名版本'
  131. matchValueTitles:
  132. - '包名'
  133. - '版本'
  134. matchTypeOptions:
  135. - 'each_equals'
  136. defaultBlockLevel: 0
  137. defaultMaxAutoBlockLevel: 10
  138. - matchProperty: 'packageName,appVersionName,channelName'
  139. matchPropertyTitle: '包名版本渠道'
  140. matchValueTitles:
  141. - '包名'
  142. - '版本'
  143. - '渠道'
  144. matchTypeOptions:
  145. - 'each_equals'
  146. defaultBlockLevel: 0
  147. defaultMaxAutoBlockLevel: 10
  148. - matchProperty: 'oaid'
  149. matchPropertyTitle: 'OAID'
  150. matchValueTitles:
  151. - 'OAID'
  152. matchTypeOptions:
  153. - 'equals'
  154. - 'any_equals'
  155. defaultBlockLevel: 0
  156. defaultMaxAutoBlockLevel: 1
  157. - matchProperty: 'deviceId'
  158. matchPropertyTitle: '设备ID'
  159. matchValueTitles:
  160. - '设备ID'
  161. matchTypeOptions:
  162. - 'equals'
  163. - 'any_equals'
  164. defaultBlockLevel: 0
  165. defaultMaxAutoBlockLevel: 1