application.yml.example 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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. server:
  17. protocol: http
  18. address: 127.0.0.1
  19. port: 8080
  20. servlet:
  21. context-path: /
  22. # Used for mail and download services, can be empty, careful configuration
  23. # By default, 'server.address' and 'server.port' is used as the string value.
  24. # access:
  25. # address:
  26. # port:
  27. ## jwt is one of the important configuration of the application
  28. ## jwt config cannot be null or empty
  29. jwtToken:
  30. secret: secret
  31. timeout: 1800000
  32. algorithm: HS512
  33. ## your datasource config
  34. source:
  35. initial-size: 1
  36. min-idle: 1
  37. max-wait: 30000
  38. max-active: 10
  39. break-after-acquire-failure: false
  40. connection-error-retry-attempts: 1
  41. time-between-eviction-runs-millis: 2000
  42. min-evictable-idle-time-millis: 600000
  43. max-evictable-idle-time-millis: 900000
  44. time-between-connect-error-millis: 60000
  45. test-while-idle: true
  46. test-on-borrow: false
  47. test-on-return: false
  48. validation-query: select 1
  49. validation-query-timeout: 10
  50. keep-alive: false
  51. filters: stat
  52. enable-query-log: false
  53. result-limit: 1000000
  54. spring:
  55. mvc:
  56. async:
  57. request-timeout: 30s
  58. rest:
  59. proxy-host:
  60. proxy-port:
  61. proxy-ignore:
  62. ## davinci datasource config
  63. datasource:
  64. type: com.alibaba.druid.pool.DruidDataSource
  65. url: jdbc:mysql://localhost:3306/davinci0.3?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true
  66. username: root
  67. password: root
  68. driver-class-name: com.mysql.jdbc.Driver
  69. initial-size: 1
  70. min-idle: 1
  71. max-wait: 30000
  72. max-active: 10
  73. break-after-acquire-failure: false
  74. connection-error-retry-attempts: 1
  75. time-between-eviction-runs-millis: 2000
  76. min-evictable-idle-time-millis: 600000
  77. max-evictable-idle-time-millis: 900000
  78. time-between-connect-error-millis: 60000
  79. test-while-idle: true
  80. test-on-borrow: false
  81. test-on-return: false
  82. validation-query: select 1
  83. validation-query-timeout: 10
  84. keep-alive: false
  85. filters: stat
  86. ## redis config
  87. ## please choose either of the two ways
  88. redis:
  89. isEnable: false
  90. ## standalone config
  91. host: 127.0.0.1
  92. port: 6379
  93. ## cluster config
  94. # cluster:
  95. # nodes:
  96. password:
  97. database: 0
  98. timeout: 1000
  99. jedis:
  100. pool:
  101. max-active: 8
  102. max-wait: 1
  103. max-idle: 8
  104. min-idle: 0
  105. ## mail is one of the important configuration of the application
  106. ## mail config cannot be null or empty
  107. ## some mailboxes need to be set separately password for the SMTP service)
  108. mail:
  109. host:
  110. port:
  111. username:
  112. fromAddress:
  113. password:
  114. nickname:
  115. properties:
  116. smtp:
  117. starttls:
  118. enable: true
  119. required: true
  120. auth: true
  121. mail:
  122. smtp:
  123. ssl:
  124. enable: false
  125. ldap:
  126. urls:
  127. username:
  128. password:
  129. base:
  130. domainName: # domainName 指 企业邮箱后缀,如企业邮箱为:xxx@example.com,这里值为 '@example.com'
  131. security:
  132. oauth2:
  133. enable: false
  134. # client:
  135. # registration:
  136. # cas:
  137. # provider: cas
  138. # client-id: "xxxxx"
  139. # client-name: "Sign in with XXX"
  140. # client-secret: "xxxxx"
  141. # authorization-grant-type: authorization_code
  142. # client-authentication-method: post
  143. # redirect-uri-template: "{baseUrl}/login/oauth2/code/{registrationId}"
  144. # scope: userinfo
  145. # provider:
  146. # cas:
  147. # authorization-uri: https://cas.xxxxx.cn/cas/oauth2.0/authorize
  148. # token-uri: https://cas.xxxxx.cn/cas/oauth2.0/accessToken
  149. # user-info-uri: https://cas.xxxxx.cn/cas/oauth2.0/profile
  150. # user-name-attribute: id
  151. # userMapping:
  152. # email: "attributes.Email"
  153. # name: "attributes.CnName1"
  154. # avatar: "attributes.Avatar"
  155. screenshot:
  156. default_browser: CHROME
  157. timeout_second: 600
  158. chromedriver_path: $your_chromedriver_path$
  159. remote_webdriver_url: $your_remote_webdriver_url$
  160. data-auth-center:
  161. channels:
  162. - name:
  163. base-url:
  164. auth-code:
  165. statistic:
  166. enable: false
  167. # You can use external elasticsearch storage [127.0.0.1:9300]
  168. elastic_urls:
  169. elastic_user:
  170. elastic_index_prefix:
  171. # You can also use external mysql storage
  172. mysql_url:
  173. mysql_username:
  174. mysql_password:
  175. # You can also use external kafka
  176. kafka.bootstrap.servers:
  177. kafka.topic:
  178. java.security.krb5.conf:
  179. java.security.keytab:
  180. java.security.principal:
  181. encryption:
  182. maxEncryptSize: 1024
  183. type: Off # Off is to turn off encryption, to enable encryption, please select AES or RSA