application.yml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449
  1. server:
  2. port: ${server.ag-basic-port}
  3. tomcat:
  4. basedir: /data/apps/temp
  5. max-http-form-post-size: -1
  6. max-http-header-size: 102400
  7. spring:
  8. datasource:
  9. driver-class-name: com.mysql.cj.jdbc.Driver
  10. max-active: 100
  11. max-idle: 100 #最大空闲连接
  12. min-idle: 10 #最小空闲连接
  13. validation-query-timeout: 20
  14. log-validation-errors: true
  15. validation-interval: 60000 #避免过度验证,保证验证不超过这个频率——以毫秒为单位。如果一个连接应该被验证,但上次验证未达到指定间隔,将不再次验证。
  16. validation-query: SELECT 1 #SQL 查询, 用来验证从连接池取出的连接, 在将连接返回给调用者之前。 如果指定, 则查询必须是一个SQL SELECT 并且必须返回至少一行记录
  17. test-on-borrow: true #指明是否在从池中取出连接前进行检验, 如果检验失败, 则从池中去除连接并尝试取出另一个。注意: 设置为true 后如果要生效,validationQuery 参数必须设置为非空字符串
  18. test-on-return: true #指明是否在归还到池中前进行检验 注意: 设置为true 后如果要生效validationQuery 参数必须设置为非空字符串
  19. idle-timeout: 20000
  20. connection-test-query: SELECT 1
  21. num-tests-per-eviction-run: 100 #在每次空闲连接回收器线程(如果有)运行时检查的连接数量,最好和maxActive
  22. test-while-idle: true #指明连接是否被空闲连接回收器(如果有)进行检验,如果检测失败,则连接将被从池中去除
  23. min-evictable-idle-time-millis: 3600000 #连接池中连接,在时间段内一直空闲,被逐出连接池的时间(1000*60*60),以毫秒为单位
  24. time-between-eviction-runs-millis: 300000 #在空闲连接回收器线程运行期间休眠的时间值,以毫秒为单位,一般比minEvictableIdleTimeMillis小
  25. redis:
  26. database: 0 # Database index used by the connection factory.
  27. timeout: 0 # Connection timeout in milliseconds.
  28. pool:
  29. max-active: 8 # Max number of connections that can be allocated by the pool at a given time. Use a negative value for no limit.
  30. max-idle: 8 # Max number of "idle" connections in the pool. Use a negative value to indicate an unlimited number of idle connections.
  31. max-wait: -1 # Maximum amount of time (in milliseconds) a connection allocation should block before throwing an exception when the pool is exhausted. Use a negative value to block indefinitely.
  32. min-idle: 1 # Target for the minimum number of idle connections to maintain in the pool. This settings only has an effect if it is positive.
  33. hystrix:
  34. command:
  35. default:
  36. execution:
  37. isolation:
  38. thread:
  39. timeoutInMilliseconds: 4800000
  40. #Ribbon
  41. ribbon:
  42. ReadTimeout: 600000
  43. ConnectTimeout: 600000
  44. SocketTimeout: 600000
  45. MaxAutoRetries: 3
  46. MaxAutoRetriesNextServer: 0
  47. eager-load:
  48. enabled: true
  49. eureka:
  50. enabled: true
  51. fast-dfs:
  52. tracker-server: 172.19.103.54:22122 #服务器地址
  53. connect-timeout: 2 #链接超时时间
  54. network-timeout: 30
  55. charset: ISO8859-1 #编码
  56. http:
  57. tracker-http-port: 80
  58. anti-steal-token: no
  59. secret-key: FastDFS1234567890
  60. pool: #连接池大小
  61. init-size: 5
  62. max-size: 20
  63. wait-time: 500
  64. # sleuth:
  65. # sampler:
  66. # percentage: 1.0 #采用需要的请求的百分比 默认是0.1 即 10%
  67. zuul:
  68. ribbon:
  69. eager-load:
  70. enabled: true
  71. retryable: true
  72. config-priority: false
  73. ignored-services: '*'
  74. sensitive-headers:
  75. routes:
  76. svr-iot:
  77. path: /cityihealth/iot/**
  78. serviceId: svr-iot
  79. svr-base:
  80. path: /cityihealth/base/**
  81. serviceId: svr-base
  82. svr-basic:
  83. path: /basic/**
  84. serviceId: svr-basic
  85. svr-resources:
  86. path: /resources/**
  87. serviceId: svr-resources
  88. #药柜预发布环境
  89. svr-base-yg:
  90. path: /cityihealth/baseygTest/**
  91. serviceId: svr-base-yg
  92. #药柜后台预发布
  93. svr-authentication-yg:
  94. path: /cityihealth/authygTest/**
  95. serviceId: svr-authentication-yg
  96. #新冠患者招募
  97. svr-base-vol:
  98. path: /cityihealth/baseVol/**
  99. serviceId: svr-base-vol
  100. svr-authentication:
  101. path: /cityihealth/auth/**
  102. serviceId: svr-authentication
  103. #公司官网
  104. svr-base-gw:
  105. path: /cityihealth/basegw/**
  106. serviceId: svr-base-gw
  107. svr-authentication-gw:
  108. path: /cityihealth/authgw/**
  109. serviceId: svr-authentication-gw
  110. svr-healthy-house:
  111. path: /cityihealth/healthyHouse/**
  112. serviceId: svr-healthy-house
  113. svr-patient:
  114. path: /cityihealth/patient/**
  115. serviceId: svr-patient
  116. svr-internet-hospital:
  117. path: /hospital/**
  118. serviceId: svr-internet-hospital
  119. svr-internet-hospital-test:
  120. path: /hospitalTest/**
  121. serviceId: svr-internet-hospital-test
  122. svr-internet-hospital-entrance:
  123. path: /hospitalEntrance/**
  124. serviceId: svr-internet-hospital-entrance
  125. svr-manage:
  126. path: /manage/**
  127. serviceId: svr-manage
  128. svr-door-service:
  129. path: /doorService/**
  130. serviceId: svr-door-service
  131. svr-cloud-care:
  132. path: /cloudCare/**
  133. serviceId: svr-cloud-care
  134. svr-cloud-care-test:
  135. path: /cloudCareTest/**
  136. serviceId: svr-cloud-care-test
  137. svr-cloud-medicine:
  138. path: /cloudMedicine/**
  139. serviceId: svr-cloud-care
  140. svr-rehabilitation:
  141. path: /rehabilitation/**
  142. serviceId: svr-rehabilitation
  143. host:
  144. connect-timeout-millis: 600000
  145. socket-timeout-millis: 600000
  146. endpoints:
  147. env:
  148. enabled: false
  149. trace:
  150. enabled: false
  151. mappings:
  152. enabled: false
  153. heapdump:
  154. enabled: false
  155. configprops:
  156. enabled: false
  157. metrics:
  158. enabled: false
  159. features:
  160. enabled: false
  161. beans:
  162. enabled: false
  163. autoconfig:
  164. enabled: false
  165. loggers:
  166. enabled: false
  167. # 信息安全
  168. security:
  169. csrf:
  170. enable: true
  171. ---
  172. spring:
  173. config:
  174. activate:
  175. on-profile: jwtest
  176. datasource:
  177. url: jdbc:mysql://172.26.0.104/base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  178. username: root
  179. password: jkzlehr
  180. redis:
  181. host: 172.26.0.253 # Redis server host.
  182. port: 6379 # Redis server port.
  183. ---
  184. spring:
  185. config:
  186. activate:
  187. on-profile: iottest
  188. datasource:
  189. url: jdbc:mysql://172.26.0.104/iot-base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  190. username: root
  191. password: jkzlehr
  192. redis:
  193. host: 172.26.0.253 # Redis server host.
  194. port: 6379 # Redis server port.
  195. ---
  196. spring:
  197. config:
  198. activate:
  199. on-profile: iotyanshi
  200. datasource:
  201. url: jdbc:mysql://172.26.0.195/iot-base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  202. username: root
  203. password: jkzlehr
  204. redis:
  205. host: 172.26.0.190 # Redis server host.
  206. port: 6379 # Redis server port.
  207. ---
  208. ## 卫计委配置
  209. spring:
  210. config:
  211. activate:
  212. on-profile: xmjwprod
  213. datasource:
  214. url: jdbc:mysql://59.61.92.90:9409/base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  215. username: wlyy
  216. password: qY#j2n5O
  217. redis:
  218. host: 59.61.92.90 # Redis server host.
  219. port: 9054 # Redis server port.
  220. password: jkzlehr
  221. ---
  222. spring:
  223. config:
  224. activate:
  225. on-profile: iotprod
  226. datasource:
  227. url: jdbc:mysql://10.90.32.3:20002/iot-base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  228. username: wlyy_new
  229. password: '@TaVAj%LEK@vB2J4&y9sk@TaVAj%LEK'
  230. redis:
  231. host: 59.61.92.90 # Redis server host.
  232. port: 9054 # Redis server port.
  233. password: o!a1#B74&m
  234. ---
  235. spring:
  236. config:
  237. activate:
  238. on-profile: iotprodIn
  239. datasource:
  240. url: jdbc:mysql://10.95.22.143:3306/iot-base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  241. username: wlyy_new
  242. password: '@TaVAj%LEK@vB2J4&y9sk@TaVAj%LEK'
  243. redis:
  244. host: 10.95.22.142 # Redis server host.
  245. port: 6380 # Redis server port.
  246. password: o!a1#B74&m
  247. ---
  248. spring:
  249. config:
  250. activate:
  251. on-profile: jwystest
  252. datasource:
  253. url: jdbc:mysql://172.26.0.104/base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  254. username: root
  255. password: jkzlehr
  256. redis:
  257. host: 172.26.0.190 # Redis server host.
  258. port: 6379 # Redis server port.
  259. ---
  260. spring:
  261. config:
  262. activate:
  263. on-profile: tnJwprod
  264. datasource:
  265. url: jdbc:mysql://10.9.1.247:3306/base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  266. username: wlyy
  267. password: qY#j2n5O
  268. redis:
  269. host: 10.9.1.247 # Redis server host.
  270. port: 6380 # Redis server port.
  271. password: Kb6wKDQP1W4
  272. ---
  273. spring:
  274. config:
  275. activate:
  276. on-profile: hzprod
  277. datasource:
  278. url: jdbc:mysql://10.18.43.40:3306/base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  279. username: wlyy
  280. password: '0XxS3W*!cRj'
  281. redis:
  282. host: 10.18.43.40 # Redis server host.
  283. port: 6379 # Redis server port.
  284. password: Kb6wKDQP1W4
  285. ---
  286. spring:
  287. config:
  288. activate:
  289. on-profile: wjwProd
  290. datasource:
  291. url: jdbc:mysql://127.0.0.1:3306/base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  292. username: wlyy
  293. password: 0XxS3W*!cRj
  294. redis:
  295. host: 127.0.0.1 # Redis server host.
  296. port: 6380 # Redis server port.
  297. password: Kb6wKDQP1W4
  298. ---
  299. spring:
  300. config:
  301. activate:
  302. on-profile: dsyy
  303. datasource:
  304. url: jdbc:mysql://127.0.0.1:3306/base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  305. username: wlyy
  306. password: 2oEq3Kf7@zjxl
  307. redis:
  308. host: 127.0.0.1 # Redis server host.
  309. port: 6380 # Redis server port.
  310. password: Kb6wKDQP1W4
  311. ---
  312. spring:
  313. config:
  314. activate:
  315. on-profile: hcyyProd
  316. datasource:
  317. url: jdbc:mysql://192.168.120.103:6001/base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  318. username: wlyy
  319. password: 2oEq3Kf7@zjxl
  320. redis:
  321. host: 192.168.120.103 # Redis server host.
  322. port: 6007 # Redis server port.
  323. password: Kb6wKDQP1W4
  324. ---
  325. spring:
  326. config:
  327. activate:
  328. on-profile: jwZnyg
  329. datasource:
  330. url: jdbc:mysql://172.26.0.222:3306/base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  331. username: root
  332. password: jkzlehr
  333. redis:
  334. host: 172.26.0.222 # Redis server host.
  335. port: 6379 # Redis server port.
  336. password: Kb6wKDQP1W4
  337. ---
  338. spring:
  339. config:
  340. activate:
  341. on-profile: jwZnygProd
  342. datasource:
  343. url: jdbc:mysql://59.61.92.90:9409/medicine?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  344. username: wlyy
  345. password: qY#j2n5O
  346. redis:
  347. host: 59.61.92.90
  348. port: 9054
  349. password: jkzlehr
  350. ---
  351. spring:
  352. config:
  353. activate:
  354. on-profile: ZjxlProd
  355. datasource:
  356. url: jdbc:mysql://172.26.0.13:3306/base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  357. username: root
  358. password: jkzlehr
  359. redis:
  360. host: 172.26.0.253 # Redis server host.
  361. port: 6379 # Redis server port.
  362. ---
  363. spring:
  364. config:
  365. activate:
  366. on-profile: jwZnygProdIn
  367. datasource:
  368. url: jdbc:mysql://10.95.22.191:3406/medicine?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  369. username: wlyy
  370. password: qY#j2n5O
  371. redis:
  372. host: 10.95.22.142
  373. port: 6380
  374. password: jkzlehr
  375. ---
  376. spring:
  377. config:
  378. activate:
  379. on-profile: mlwProd
  380. datasource:
  381. url: jdbc:mysql://172.26.0.114:3306/base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  382. username: root
  383. password: 4D^tK%!4
  384. redis:
  385. host: 172.26.0.153
  386. port: 6379
  387. password: Kb6wKDQP1W4
  388. ---
  389. spring:
  390. profiles: mlwTest
  391. datasource:
  392. url: jdbc:mysql://172.26.0.114:3306/base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  393. username: root
  394. password: 4D^tK%!4
  395. redis:
  396. host: 172.26.0.253
  397. port: 6390
  398. password: Kb6wKDQP1W4
  399. fastDFS:
  400. fastdfs_file_url: http://172.19.103.54:80/
  401. ---
  402. spring:
  403. config:
  404. activate:
  405. on-profile: dsyy
  406. datasource:
  407. url: jdbc:mysql://127.0.0.1:3306/base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  408. username: wlyy
  409. password: 2oEq3Kf7@zjxl
  410. redis:
  411. host: 127.0.0.1
  412. port: 6380
  413. password: Kb6wKDQP1W4
  414. ---
  415. spring:
  416. profiles: native
  417. datasource:
  418. url: jdbc:mysql://59.61.92.90:8079/query-base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  419. username: xilari
  420. password: '&}H89@a7&AspSq@'
  421. redis:
  422. host: 59.61.92.90
  423. port: 9054
  424. password: o!a1#B74&m
  425. fastDFS:
  426. fastdfs_file_url: https://www.xmtyw.cn/