application.yml 4.3 KB

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