application.yml 3.5 KB

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