application.yml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. # <<
  2. # Davinci
  3. # ==
  4. # Copyright (C) 2016 - 2019 EDP
  5. # ==
  6. # Licensed under the Apache License, Version 2.0 (the "License");
  7. # you may not use this file except in compliance with the License.
  8. # You may obtain a copy of the License at
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. # >>
  16. davinci:
  17. version: 0.3-rc
  18. DAVINCI3_HOME: app/
  19. file:
  20. userfiles-path: ${DAVINCI3_HOME}/userfiles/
  21. web_resources: ${DAVINCI3_HOME}/davinci-ui/
  22. base-path: ${DAVINCI3_HOME}/lib/
  23. spring:
  24. application:
  25. name: taihu-analysis
  26. servlet:
  27. multipart:
  28. max-request-size: 1024MB
  29. max-file-size: 1024MB
  30. enabled: true
  31. mvc:
  32. async:
  33. request-timeout: 30s
  34. rest:
  35. proxy-host:
  36. proxy-port:
  37. proxy-ignore:
  38. ## davinci datasource config
  39. datasource:
  40. type: com.alibaba.druid.pool.DruidDataSource
  41. url: jdbc:mysql://${DATABASE_HOST:61.132.52.38}:${DATABASE_PORT:20002}/${DATABASE_NAME:davinci0.3}?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true
  42. username: ${DATABASE_USER:root}
  43. password: ${DATABASE_PWD:root}
  44. driver-class-name: com.mysql.jdbc.Driver
  45. initial-size: 1
  46. min-idle: 1
  47. max-wait: 30000
  48. max-active: 10
  49. break-after-acquire-failure: false
  50. connection-error-retry-attempts: 1
  51. time-between-eviction-runs-millis: 2000
  52. min-evictable-idle-time-millis: 600000
  53. max-evictable-idle-time-millis: 900000
  54. time-between-connect-error-millis: 60000
  55. test-while-idle: true
  56. test-on-borrow: false
  57. test-on-return: false
  58. validation-query: select 1
  59. validation-query-timeout: 10
  60. keep-alive: false
  61. filters: stat
  62. ## redis config
  63. ## please choose either of the two ways
  64. redis:
  65. isEnable: true
  66. ## standalone config
  67. host: ${REDIS_HOST:127.0.0.1}
  68. port: ${REDIS_PORT:6379}
  69. ## cluster config
  70. # cluster:
  71. # nodes:
  72. password:
  73. database: ${REDIS_DB:0}
  74. timeout: 1000
  75. jedis:
  76. pool:
  77. max-active: 8
  78. max-wait: 1000
  79. max-idle: 200
  80. min-idle: 0
  81. ## mail is one of the important configuration of the application
  82. ## mail config cannot be null or empty
  83. ## some mailboxes need to be set separately password for the SMTP service)
  84. mail:
  85. host: smtp.qq.com
  86. port: 465
  87. username: 372237882@qq.com
  88. fromAddress: 372237882@qq.com
  89. password: pdjjxdplzwwzbhic
  90. nickname: vincent
  91. properties:
  92. smtp:
  93. starttls:
  94. enable: true
  95. required: true
  96. auth: true
  97. mail:
  98. smtp:
  99. ssl:
  100. enable: false
  101. ldap:
  102. urls:
  103. username:
  104. password:
  105. base:
  106. domainName: # domainName 指 企业邮箱后缀,如企业邮箱为:xxx@example.com,这里值为 '@example.com'
  107. security:
  108. oauth2:
  109. enable: false
  110. # client:
  111. # registration:
  112. # cas:
  113. # provider: cas
  114. # client-id: "xxxxx"
  115. # client-name: "Sign in with XXX"
  116. # client-secret: "xxxxx"
  117. # authorization-grant-type: authorization_code
  118. # client-authentication-method: post
  119. # redirect-uri-template: "{baseUrl}/login/oauth2/code/{registrationId}"
  120. # scope: userinfo
  121. # provider:
  122. # cas:
  123. # authorization-uri: https://cas.xxxxx.cn/cas/oauth2.0/authorize
  124. # token-uri: https://cas.xxxxx.cn/cas/oauth2.0/accessToken
  125. # user-info-uri: https://cas.xxxxx.cn/cas/oauth2.0/profile
  126. # user-name-attribute: id
  127. # userMapping:
  128. # email: "attributes.Email"
  129. # name: "attributes.CnName1"
  130. # avatar: "attributes.Avatar"
  131. # config:
  132. # location: classpath:/
  133. # additional-location: file:config
  134. # name: application-ext
  135. server:
  136. protocol: http
  137. address: ${SERVER_ADDR:127.0.0.1}
  138. port: ${SERVER_PORT:8080}
  139. temp: http://thdata.xt.wenhq.top:8083
  140. servlet:
  141. context-path: /
  142. # Used for mail and download services, can be empty, careful configuration
  143. # By default, 'server.address' and 'server.port' is used as the string value.
  144. # access:
  145. # address:
  146. # port:
  147. ## jwt is one of the important configuration of the application
  148. ## jwt config cannot be null or empty
  149. jwtToken:
  150. secret: secret
  151. timeout: 1800000
  152. algorithm: HS512
  153. ## your datasource config
  154. source:
  155. initial-size: 1
  156. min-idle: 1
  157. max-wait: 30000
  158. max-active: 10
  159. break-after-acquire-failure: false
  160. connection-error-retry-attempts: 1
  161. time-between-eviction-runs-millis: 2000
  162. min-evictable-idle-time-millis: 600000
  163. max-evictable-idle-time-millis: 900000
  164. time-between-connect-error-millis: 60000
  165. test-while-idle: true
  166. test-on-borrow: false
  167. test-on-return: false
  168. validation-query: select 1
  169. validation-query-timeout: 10
  170. keep-alive: false
  171. filters: stat
  172. enable-query-log: false
  173. result-limit: 1000000
  174. screenshot:
  175. default_browser: CHROME
  176. timeout_second: 600
  177. chromedriver_path: /chrome-driver/linux/chromedriver
  178. # remote_webdriver_url: http://localhost:4446/wd/hub
  179. data-auth-center:
  180. channels:
  181. - name:
  182. base-url:
  183. auth-code:
  184. statistic:
  185. enable: false
  186. # You can use external elasticsearch storage [127.0.0.1:9300]
  187. elastic_urls:
  188. elastic_user:
  189. elastic_index_prefix:
  190. # You can also use external mysql storage
  191. mysql_url:
  192. mysql_username:
  193. mysql_password:
  194. # You can also use external kafka
  195. kafka.bootstrap.servers:
  196. kafka.topic:
  197. java.security.krb5.conf:
  198. java.security.keytab:
  199. java.security.principal:
  200. encryption:
  201. maxEncryptSize: 1024
  202. type: Off # Off is to turn off encryption, to enable encryption, please select AES or RSA
  203. resources:
  204. static-locations: classpath:/META-INF/resources/, classpath:/resources/, classpath:/static/, file:${file.userfiles-path}, file:${file.web_resources}
  205. mvc:
  206. static-path-pattern: /**
  207. thymeleaf:
  208. mode: HTML
  209. cache: true
  210. prefix: classpath:/templates/
  211. encoding: UTF-8
  212. suffix: .html
  213. check-template-location: true
  214. template-resolver-order: 1
  215. jackson:
  216. date-format: yyyy-MM-dd HH:mm:ss
  217. time-zone: GMT+8
  218. logging:
  219. config: classpath:config/logback.xml
  220. ## nacos 配置
  221. nacos:
  222. discovery:
  223. server-addr: ${NACOS_DISCOVERY_SERVER_ADDR:127.0.0.1:8848}
  224. config:
  225. server-addr: ${NACOS_CONFIG_SERVER_ADDR:127.0.0.1:8848}
  226. springfox:
  227. documentation:
  228. swagger:
  229. v2:
  230. path: /api-doc
  231. pagehelper:
  232. supportMethodsArguments: true
  233. reasonable: true
  234. returnPageInfo: check
  235. helperDialect: mysql
  236. params: count=countSql
  237. mybatis:
  238. mapper-locations: classpath:mybatis/mapper/*Mapper.xml
  239. config-locations: classpath:mybatis/mybatis-config.xml
  240. type-aliases-package: edp.davinci.model
  241. configuration:
  242. map-underscore-to-camel-case: true
  243. use-generated-keys: true
  244. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  245. mapper:
  246. identity: MYSQL
  247. not-empty: false
  248. mappers: edp.davinci.dao
  249. sql-template-delimiter: $
  250. custom-datasource-driver-path: classpath:/config/datasource_driver.yml