application.yml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. spring:
  2. profiles:
  3. # active: dev-pre
  4. # active: dev-online
  5. active: dev-localhost
  6. cache:
  7. guava:
  8. spec: expireAfterWrite=30s
  9. datasource:
  10. driver-class-name: com.mysql.jdbc.Driver
  11. # url: jdbc:mysql://101.37.175.111:3306/crowd-test-service?useSSL=false&useUnicode=yes&characterEncoding=UTF-8
  12. # username: mooctest
  13. # password: secr3t!
  14. # Keep the connection alive if idle for a long time (needed in production)
  15. testWhileIdle: true
  16. validationQuery: SELECT 1
  17. # Show or not log for each sql query
  18. jpa:
  19. show-sql: true
  20. # Hibernate ddl auto (create, create-drop, update)
  21. hibernate:
  22. ddl-auto: validate
  23. #hbm2ddl.auto: update
  24. # Naming strategy
  25. naming-strategy: org.hibernate.cfg.ImprovedNamingStrategy
  26. # The SQL dialect makes Hibernate generate better SQL for the chosen database
  27. properties.hibernate.dialect: org.hibernate.dialect.MySQL5Dialect
  28. # redis:
  29. # host: 114.55.91.27
  30. # pool: 6379
  31. # password: '#03#05@ise@mooctest'
  32. # jedis:
  33. # pool:
  34. # max-active: 8
  35. # max-idle: 8
  36. # max-wait: -1
  37. # min-idle: 0
  38. # database: 6
  39. servlet:
  40. multipart:
  41. enabled: true
  42. max-file-size: 100MB
  43. max-request-size: 100MB
  44. feature-switch:
  45. default:
  46. role: generalUser
  47. oss:
  48. # accessKeyId: LTAI4Frsvbz6G8RKb9dWDPUz
  49. # accessKeySecret: xdxGJuMlrEMMP3ZKY6n0WyZZNZAqrE
  50. accessKeyId: LTAI4FdrT3HsfdR5edBVN7ws
  51. accessKeySecret: yroxrpm46DzTyzHrLBZzS3MRNIicP6
  52. endPoint: oss-cn-hangzhou.aliyuncs.com
  53. bucketName: mooctest-crowd-service
  54. #user:
  55. # service:
  56. # baseUrl: http://111.231.143.6:8081
  57. cache:
  58. expire:
  59. duration: 86400
  60. agency: 7
  61. green:
  62. manager:
  63. id: 99222
  64. agency:
  65. id: 99231
  66. ---
  67. spring:
  68. profiles: dev
  69. datasource:
  70. url: jdbc:mysql://101.37.175.111:3306/crowd-test-service?useSSL=false&useUnicode=yes&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
  71. username: mooctest
  72. password: secr3t!
  73. redis:
  74. host: 59.42.10.53
  75. pool: 6379
  76. password: '#2019@callforttest@!'
  77. jedis:
  78. pool:
  79. max-active: 8
  80. max-idle: 8
  81. max-wait: -1
  82. min-idle: 0
  83. database: 6
  84. user:
  85. service:
  86. baseUrl: http://59.42.10.53:8081
  87. website:
  88. domain: mooctest.net
  89. ---
  90. spring:
  91. profiles: dev-localhost
  92. datasource:
  93. url: jdbc:mysql://101.37.175.111:3306/crowd-test-service?useSSL=false&useUnicode=yes&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
  94. username: mooctest
  95. password: secr3t!
  96. redis:
  97. host: 59.42.10.53
  98. pool: 6379
  99. password: '#2019@callforttest@!'
  100. jedis:
  101. pool:
  102. max-active: 8
  103. max-idle: 8
  104. max-wait: -1
  105. min-idle: 0
  106. database: 6
  107. user:
  108. service:
  109. # baseUrl: http://127.0.0.1:8081
  110. baseUrl: http://59.42.10.53:8081
  111. website:
  112. domain: mooctest.net
  113. ---
  114. spring:
  115. profiles: dev-pre
  116. datasource:
  117. url: jdbc:mysql://101.37.175.111:3306/crowd-test-service-pre?useSSL=false&useUnicode=yes&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
  118. username: mooctest
  119. password: secr3t!
  120. redis:
  121. host: 59.42.10.53
  122. pool: 6379
  123. password: '#2019@callforttest@!'
  124. jedis:
  125. pool:
  126. max-active: 8
  127. max-idle: 8
  128. max-wait: -1
  129. min-idle: 0
  130. database: 6
  131. user:
  132. service:
  133. baseUrl: http://59.42.10.53:8081
  134. website:
  135. domain: mooctest.net
  136. ---
  137. spring:
  138. profiles: dev-online
  139. datasource:
  140. url: jdbc:mysql://101.37.175.111:3306/crowd-test-service-online?useSSL=false&useUnicode=yes&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
  141. username: mooctest
  142. password: secr3t!
  143. redis:
  144. host: 59.42.10.53
  145. pool: 6379
  146. password: '#2019@callforttest@!'
  147. jedis:
  148. pool:
  149. max-active: 8
  150. max-idle: 8
  151. max-wait: -1
  152. min-idle: 0
  153. database: 6
  154. user:
  155. service:
  156. baseUrl: http://59.42.10.53:8081
  157. website:
  158. domain: mooctest.net
  159. ---
  160. spring:
  161. profiles: pre
  162. datasource:
  163. url: jdbc:mysql://101.37.175.111:3306/crowd-test-service-pre?useSSL=false&useUnicode=yes&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
  164. username: mooctest
  165. password: secr3t!
  166. redis:
  167. host: 10.18.18.50
  168. pool: 6379
  169. password: '#2019@callforttest@!'
  170. jedis:
  171. pool:
  172. max-active: 8
  173. max-idle: 8
  174. max-wait: -1
  175. min-idle: 0
  176. database: 6
  177. user:
  178. service:
  179. baseUrl: http://10.18.18.50:8081
  180. website:
  181. domain: mooctest.net
  182. ---
  183. spring:
  184. profiles: online
  185. datasource:
  186. url: jdbc:mysql://10.18.18.50:3306/crowd-test-service?useSSL=false&useUnicode=yes&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
  187. username: root
  188. password: callfortest_crowd
  189. redis:
  190. host: 10.18.18.50
  191. pool: 6379
  192. password: '#2019@callforttest@!'
  193. jedis:
  194. pool:
  195. max-active: 8
  196. max-idle: 8
  197. max-wait: -1
  198. min-idle: 0
  199. database: 0
  200. user:
  201. service:
  202. baseUrl: http://user.cofortest.com
  203. website:
  204. domain: cofortest.com