application.yml 3.9 KB

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