application.yml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. spring:
  2. profiles:
  3. active: localhost
  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. properties.hibernate.dialect: org.hibernate.dialect.MySQL5InnoDBDialect
  14. servlet:
  15. multipart:
  16. enabled: true
  17. max-file-size: 3024MB
  18. max-request-size: 3024MB
  19. thymeleaf:
  20. prefix: classpath:/templates/
  21. suffix: .html
  22. mode: LEGACYHTML5
  23. encoding: UTF-8
  24. servlet:
  25. content-type: text/html
  26. cache: false
  27. file:
  28. save:
  29. path: /var/www/
  30. oss:
  31. accessKeyId: LTAI5tKXZyWkB2mCXRuHBNCB
  32. accessKeySecret: tyJ4zu0bmGheTRuxzQ0iyKIiJkStx4
  33. endPoint: oss-cn-hangzhou.aliyuncs.com
  34. bucketName: mooctest-crowd-service
  35. idleConnectionTime: 1000
  36. cache:
  37. expire:
  38. duration: 86400
  39. agency: 7
  40. green:
  41. manager:
  42. id: 99222
  43. agency:
  44. id: 99231
  45. mail:
  46. default-encoding: UTF-8
  47. host: smtp.gdsoftpark.com
  48. password: tsp32068333
  49. username: topstest@gdsoftpark.com
  50. ---
  51. # 开发版本
  52. spring:
  53. profiles: dev
  54. datasource:
  55. url: jdbc:mysql://8.134.32.27:3306/crowd-test-service-online?useSSL=false&useUnicode=yes&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
  56. username: root
  57. password: callfortest_crowd
  58. redis:
  59. host: 106.14.81.62
  60. port: 6378
  61. password: Customs2019
  62. jedis:
  63. pool:
  64. max-active: 8
  65. max-idle: 8
  66. max-wait: -1
  67. min-idle: 0
  68. database: 0
  69. user:
  70. service:
  71. baseUrl: http://106.14.81.62:8281
  72. #file:
  73. # save:
  74. # path: /var/www/
  75. feature:
  76. client:
  77. oss: true
  78. task:
  79. import: true #任务导入
  80. recommend: false #任务推荐
  81. acceptedPWD: true #使用密码接收任务
  82. file:
  83. save:
  84. path: /Users/guochao/Desktop/project/data/cofortest/
  85. #feature:
  86. # client:
  87. # oss: false
  88. website:
  89. domain: mooctest.net
  90. ---
  91. # 线上版本
  92. spring:
  93. profiles: online
  94. datasource:
  95. url: jdbc:mysql://8.134.32.27:3306/crowd-test-service?useSSL=false&useUnicode=yes&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&sessionVariables=sql_mode=%27STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION%27
  96. username: root
  97. password: callfortest_crowd
  98. redis:
  99. host: 8.134.32.27
  100. port: 6379
  101. password: '#2019@callforttest@!'
  102. jedis:
  103. pool:
  104. max-active: 8
  105. max-idle: 8
  106. max-wait: -1
  107. min-idle: 0
  108. database: 0
  109. feature:
  110. client:
  111. oss: true
  112. file:
  113. save:
  114. path: /var/www/
  115. user:
  116. service:
  117. # baseUrl: http://59.42.10.53
  118. baseUrl: http://user.cofortest.com:8081
  119. website:
  120. domain: cofortest.com
  121. redirect:
  122. url: http://www.cofortest.com
  123. ---
  124. # 私有云版本
  125. spring:
  126. profiles: private-cloud
  127. datasource:
  128. url: jdbc:mysql://mysql:3306/crowd-test-service?useSSL=false&useUnicode=yes&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
  129. username: root
  130. password: Customs2019
  131. redis:
  132. host: redis
  133. port: 6379
  134. password:
  135. jedis:
  136. pool:
  137. max-active: 8
  138. max-idle: 8
  139. max-wait: -1
  140. min-idle: 0
  141. database: 0
  142. # redis:
  143. # host: redis
  144. # password:
  145. # pool:
  146. # max-active: 8
  147. # max-idle: 8
  148. # max-wait: -1
  149. # min-idle: 0
  150. # port: 6379
  151. feature:
  152. client:
  153. oss: false
  154. file:
  155. save:
  156. path: /var/www/
  157. user:
  158. service:
  159. baseUrl: http://crowd_user:8081
  160. # baseUrl: http://59.42.10.53:8081
  161. website:
  162. domain: 127.0.0.1
  163. ---
  164. # 私有云版本-本地测试
  165. spring:
  166. profiles: private-cloud-localhost
  167. datasource:
  168. url: jdbc:mysql://127.0.0.1:3306/crowd-test-service?useSSL=false&useUnicode=yes&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
  169. username: root
  170. password: Customs2019
  171. redis:
  172. host: 127.0.0.1
  173. port: 6379
  174. password:
  175. jedis:
  176. pool:
  177. max-active: 8
  178. max-idle: 8
  179. max-wait: -1
  180. min-idle: 0
  181. database: 0
  182. # redis:
  183. # host: 127.0.0.1
  184. # password:
  185. # pool:
  186. # max-active: 8
  187. # max-idle: 8
  188. # max-wait: -1
  189. # min-idle: 0
  190. # port: 6379
  191. feature:
  192. client:
  193. oss: false
  194. file:
  195. save:
  196. path: /Users/guochao/Desktop/project/data/cofortest/
  197. user:
  198. service:
  199. baseUrl: http://127.0.0.1:8081
  200. # baseUrl: http://59.42.10.53:8081
  201. website:
  202. domain: 127.0.0.1
  203. ---
  204. # 私有云版本-本地测试
  205. spring:
  206. profiles: localhost
  207. datasource:
  208. url: jdbc:mysql://127.0.0.1:3306/crowd-test-service?useSSL=false&useUnicode=yes&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&sessionVariables=sql_mode=%27STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION%27
  209. username: root
  210. password: 123456
  211. redis:
  212. host: localhost
  213. port: 6379
  214. password:
  215. jedis:
  216. pool:
  217. max-active: 8
  218. max-idle: 8
  219. max-wait: -1
  220. min-idle: 0
  221. database: 0
  222. # redis:
  223. # host: 127.0.0.1
  224. # password:
  225. # pool:
  226. # max-active: 8
  227. # max-idle: 8
  228. # max-wait: -1
  229. # min-idle: 0
  230. # port: 6379
  231. feature:
  232. client:
  233. oss: true
  234. file:
  235. save:
  236. path:
  237. user:
  238. service:
  239. baseUrl: http://127.0.0.1:8081
  240. # baseUrl: http://59.42.10.53:8081
  241. # baseUrl: http://59.42.10.53:8081
  242. website:
  243. domain: 127.0.0.1
  244. redirect:
  245. url: http://127.0.0.1:5757/
  246. ---
  247. # 私有云版本-本地测试
  248. spring:
  249. profiles: test
  250. datasource:
  251. url: jdbc:mysql://127.0.0.1:3306/crowd-test-service?useSSL=false&useUnicode=yes&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&sessionVariables=sql_mode=%27STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION%27
  252. username: root
  253. password: 123456
  254. redis:
  255. host: localhost
  256. port: 6379
  257. password:
  258. jedis:
  259. pool:
  260. max-active: 8
  261. max-idle: 8
  262. max-wait: -1
  263. min-idle: 0
  264. database: 0
  265. # redis:
  266. # host: 127.0.0.1
  267. # password:
  268. # pool:
  269. # max-active: 8
  270. # max-idle: 8
  271. # max-wait: -1
  272. # min-idle: 0
  273. # port: 6379
  274. feature:
  275. client:
  276. oss: true
  277. file:
  278. save:
  279. path:
  280. user:
  281. service:
  282. baseUrl: http://127.0.0.1:8081
  283. # baseUrl: http://59.42.10.53:8081
  284. # baseUrl: http://59.42.10.53:8081
  285. website:
  286. domain: 59.42.10.67
  287. redirect:
  288. url: http://59.42.10.67/