application.yml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  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: /Users/vincent/workspace/taihu/data-analysis
  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:8081}
  139. servlet:
  140. context-path: /
  141. # Used for mail and download services, can be empty, careful configuration
  142. # By default, 'server.address' and 'server.port' is used as the string value.
  143. # access:
  144. # address:
  145. # port:
  146. ## jwt is one of the important configuration of the application
  147. ## jwt config cannot be null or empty
  148. jwtToken:
  149. secret: secret
  150. timeout: 1800000
  151. algorithm: HS512
  152. ## your datasource config
  153. source:
  154. initial-size: 1
  155. min-idle: 1
  156. max-wait: 30000
  157. max-active: 10
  158. break-after-acquire-failure: false
  159. connection-error-retry-attempts: 1
  160. time-between-eviction-runs-millis: 2000
  161. min-evictable-idle-time-millis: 600000
  162. max-evictable-idle-time-millis: 900000
  163. time-between-connect-error-millis: 60000
  164. test-while-idle: true
  165. test-on-borrow: false
  166. test-on-return: false
  167. validation-query: select 1
  168. validation-query-timeout: 10
  169. keep-alive: false
  170. filters: stat
  171. enable-query-log: false
  172. result-limit: 1000000
  173. screenshot:
  174. default_browser: CHROME
  175. timeout_second: 600
  176. chromedriver_path: $your_chromedriver_path$
  177. remote_webdriver_url: $your_remote_webdriver_url$
  178. data-auth-center:
  179. channels:
  180. - name:
  181. base-url:
  182. auth-code:
  183. statistic:
  184. enable: false
  185. # You can use external elasticsearch storage [127.0.0.1:9300]
  186. elastic_urls:
  187. elastic_user:
  188. elastic_index_prefix:
  189. # You can also use external mysql storage
  190. mysql_url:
  191. mysql_username:
  192. mysql_password:
  193. # You can also use external kafka
  194. kafka.bootstrap.servers:
  195. kafka.topic:
  196. java.security.krb5.conf:
  197. java.security.keytab:
  198. java.security.principal:
  199. encryption:
  200. maxEncryptSize: 1024
  201. type: Off # Off is to turn off encryption, to enable encryption, please select AES or RSA
  202. resources:
  203. static-locations: classpath:/META-INF/resources/, classpath:/resources/, classpath:/static/, file:${file.userfiles-path}, file:${file.web_resources}
  204. mvc:
  205. static-path-pattern: /**
  206. thymeleaf:
  207. mode: HTML
  208. cache: true
  209. prefix: classpath:/templates/
  210. encoding: UTF-8
  211. suffix: .html
  212. check-template-location: true
  213. template-resolver-order: 1
  214. jackson:
  215. date-format: yyyy-MM-dd HH:mm:ss
  216. time-zone: GMT+8
  217. logging:
  218. config: classpath:config/logback.xml
  219. ## nacos 配置
  220. nacos:
  221. discovery:
  222. server-addr: ${NACOS_DISCOVERY_SERVER_ADDR:127.0.0.1:8848}
  223. config:
  224. server-addr: ${NACOS_CONFIG_SERVER_ADDR:127.0.0.1:8848}
  225. springfox:
  226. documentation:
  227. swagger:
  228. v2:
  229. path: /api-doc
  230. pagehelper:
  231. supportMethodsArguments: true
  232. reasonable: true
  233. returnPageInfo: check
  234. helperDialect: mysql
  235. params: count=countSql
  236. mybatis:
  237. mapper-locations: classpath:mybatis/mapper/*Mapper.xml
  238. config-locations: classpath:mybatis/mybatis-config.xml
  239. type-aliases-package: edp.davinci.model
  240. configuration:
  241. map-underscore-to-camel-case: true
  242. use-generated-keys: true
  243. mapper:
  244. identity: MYSQL
  245. not-empty: false
  246. mappers: edp.davinci.dao
  247. sql-template-delimiter: $
  248. custom-datasource-driver-path: classpath:/config/datasource_driver.yml