application.yml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. spring:
  2. profiles:
  3. active: dev
  4. cache:
  5. guava:
  6. spec: expireAfterWrite=30s
  7. datasource:
  8. driver-class-name: com.mysql.jdbc.Driver
  9. testWhileIdle: true
  10. validationQuery: SELECT 1
  11. jpa:
  12. show-sql: true
  13. hibernate:
  14. ddl-auto: validate
  15. naming-strategy: org.hibernate.cfg.ImprovedNamingStrategy
  16. properties.hibernate.dialect: org.hibernate.dialect.MySQL5Dialect
  17. servlet:
  18. multipart:
  19. enabled: true
  20. max-file-size: 3024MB
  21. max-request-size: 3024MB
  22. file:
  23. save:
  24. path: /var/www/
  25. oss:
  26. accessKeyId: LTAI5tKXZyWkB2mCXRuHBNCB
  27. accessKeySecret: tyJ4zu0bmGheTRuxzQ0iyKIiJkStx4
  28. endPoint: oss-cn-hangzhou.aliyuncs.com
  29. bucketName: mooctest-crowd-service
  30. idleConnectionTime: 1000
  31. cache:
  32. expire:
  33. duration: 86400
  34. agency: 7
  35. green:
  36. manager:
  37. id: 99222
  38. agency:
  39. id: 99231
  40. ---
  41. # 开发版本
  42. spring:
  43. profiles: dev
  44. datasource:
  45. url: jdbc:mysql://8.134.32.27:3306/crowd-test-service-online?useSSL=false&useUnicode=yes&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
  46. username: root
  47. password: callfortest_crowd
  48. redis:
  49. host: 106.14.81.62
  50. port: 6378
  51. password: Customs2019
  52. jedis:
  53. pool:
  54. max-active: 8
  55. max-idle: 8
  56. max-wait: -1
  57. min-idle: 0
  58. database: 0
  59. user:
  60. service:
  61. baseUrl: http://106.14.81.62:8281
  62. #file:
  63. # save:
  64. # path: /var/www/
  65. feature:
  66. client:
  67. oss: true
  68. task:
  69. import: true #任务导入
  70. recommend: false #任务推荐
  71. acceptedPWD: true #使用密码接收任务
  72. file:
  73. save:
  74. path: /Users/guochao/Desktop/project/data/cofortest/
  75. #feature:
  76. # client:
  77. # oss: false
  78. website:
  79. domain: mooctest.net
  80. ---
  81. # 线上版本
  82. spring:
  83. profiles: online
  84. datasource:
  85. url: jdbc:mysql://8.134.32.27:3306/crowd-test-service?useSSL=false&useUnicode=yes&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
  86. username: root
  87. password: callfortest_crowd
  88. redis:
  89. host: 8.134.32.27
  90. port: 6379
  91. password: '#2019@callforttest@!'
  92. jedis:
  93. pool:
  94. max-active: 8
  95. max-idle: 8
  96. max-wait: -1
  97. min-idle: 0
  98. database: 0
  99. feature:
  100. client:
  101. oss: true
  102. file:
  103. save:
  104. path: /var/www/
  105. user:
  106. service:
  107. # baseUrl: http://59.42.10.53
  108. baseUrl: http://user.cofortest.com:8081
  109. website:
  110. domain: cofortest.com
  111. ---
  112. # 私有云版本
  113. spring:
  114. profiles: private-cloud
  115. datasource:
  116. url: jdbc:mysql://mysql:3306/crowd-test-service?useSSL=false&useUnicode=yes&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
  117. username: root
  118. password: Customs2019
  119. redis:
  120. host: redis
  121. port: 6379
  122. password:
  123. jedis:
  124. pool:
  125. max-active: 8
  126. max-idle: 8
  127. max-wait: -1
  128. min-idle: 0
  129. database: 0
  130. # redis:
  131. # host: redis
  132. # password:
  133. # pool:
  134. # max-active: 8
  135. # max-idle: 8
  136. # max-wait: -1
  137. # min-idle: 0
  138. # port: 6379
  139. feature:
  140. client:
  141. oss: false
  142. file:
  143. save:
  144. path: /var/www/
  145. user:
  146. service:
  147. baseUrl: http://crowd_user:8081
  148. # baseUrl: http://59.42.10.53:8081
  149. website:
  150. domain: 127.0.0.1
  151. ---
  152. # 私有云版本-本地测试
  153. spring:
  154. profiles: private-cloud-localhost
  155. datasource:
  156. url: jdbc:mysql://127.0.0.1:3306/crowd-test-service?useSSL=false&useUnicode=yes&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
  157. username: root
  158. password: Customs2019
  159. redis:
  160. host: 127.0.0.1
  161. port: 6379
  162. password:
  163. jedis:
  164. pool:
  165. max-active: 8
  166. max-idle: 8
  167. max-wait: -1
  168. min-idle: 0
  169. database: 0
  170. # redis:
  171. # host: 127.0.0.1
  172. # password:
  173. # pool:
  174. # max-active: 8
  175. # max-idle: 8
  176. # max-wait: -1
  177. # min-idle: 0
  178. # port: 6379
  179. feature:
  180. client:
  181. oss: false
  182. file:
  183. save:
  184. path: /Users/guochao/Desktop/project/data/cofortest/
  185. user:
  186. service:
  187. baseUrl: http://127.0.0.1:8081
  188. # baseUrl: http://59.42.10.53:8081
  189. website:
  190. domain: 127.0.0.1