123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295 |
- # <<
- # Davinci
- # ==
- # Copyright (C) 2016 - 2019 EDP
- # ==
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- # http://www.apache.org/licenses/LICENSE-2.0
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- # >>
- davinci:
- version: 0.3-rc
- DAVINCI3_HOME: app/
- file:
- userfiles-path: ${DAVINCI3_HOME}/userfiles/
- web_resources: ${DAVINCI3_HOME}/davinci-ui/
- base-path: ${DAVINCI3_HOME}/lib/
- spring:
- application:
- name: taihu-analysis
- servlet:
- multipart:
- max-request-size: 1024MB
- max-file-size: 1024MB
- enabled: true
- mvc:
- async:
- request-timeout: 30s
- rest:
- proxy-host:
- proxy-port:
- proxy-ignore:
- ## davinci datasource config
- datasource:
- type: com.alibaba.druid.pool.DruidDataSource
- 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
- username: ${DATABASE_USER:root}
- password: ${DATABASE_PWD:root}
- driver-class-name: com.mysql.jdbc.Driver
- initial-size: 1
- min-idle: 1
- max-wait: 30000
- max-active: 10
- break-after-acquire-failure: false
- connection-error-retry-attempts: 1
- time-between-eviction-runs-millis: 2000
- min-evictable-idle-time-millis: 600000
- max-evictable-idle-time-millis: 900000
- time-between-connect-error-millis: 60000
- test-while-idle: true
- test-on-borrow: false
- test-on-return: false
- validation-query: select 1
- validation-query-timeout: 10
- keep-alive: false
- filters: stat
- ## redis config
- ## please choose either of the two ways
- redis:
- isEnable: true
- ## standalone config
- host: ${REDIS_HOST:127.0.0.1}
- port: ${REDIS_PORT:6379}
- ## cluster config
- # cluster:
- # nodes:
- password:
- database: ${REDIS_DB:0}
- timeout: 1000
- jedis:
- pool:
- max-active: 8
- max-wait: 1000
- max-idle: 200
- min-idle: 0
- ## mail is one of the important configuration of the application
- ## mail config cannot be null or empty
- ## some mailboxes need to be set separately password for the SMTP service)
- mail:
- host: smtp.qq.com
- port: 465
- username: 372237882@qq.com
- fromAddress: 372237882@qq.com
- password: pdjjxdplzwwzbhic
- nickname: vincent
- properties:
- smtp:
- starttls:
- enable: true
- required: true
- auth: true
- mail:
- smtp:
- ssl:
- enable: false
- ldap:
- urls:
- username:
- password:
- base:
- domainName: # domainName 指 企业邮箱后缀,如企业邮箱为:xxx@example.com,这里值为 '@example.com'
- security:
- oauth2:
- enable: false
- # client:
- # registration:
- # cas:
- # provider: cas
- # client-id: "xxxxx"
- # client-name: "Sign in with XXX"
- # client-secret: "xxxxx"
- # authorization-grant-type: authorization_code
- # client-authentication-method: post
- # redirect-uri-template: "{baseUrl}/login/oauth2/code/{registrationId}"
- # scope: userinfo
- # provider:
- # cas:
- # authorization-uri: https://cas.xxxxx.cn/cas/oauth2.0/authorize
- # token-uri: https://cas.xxxxx.cn/cas/oauth2.0/accessToken
- # user-info-uri: https://cas.xxxxx.cn/cas/oauth2.0/profile
- # user-name-attribute: id
- # userMapping:
- # email: "attributes.Email"
- # name: "attributes.CnName1"
- # avatar: "attributes.Avatar"
- # config:
- # location: classpath:/
- # additional-location: file:config
- # name: application-ext
- server:
- protocol: http
- address: ${SERVER_ADDR:127.0.0.1}
- port: ${SERVER_PORT:8080}
- temp: http://thdata.xt.wenhq.top:8083
- servlet:
- context-path: /
- # Used for mail and download services, can be empty, careful configuration
- # By default, 'server.address' and 'server.port' is used as the string value.
- # access:
- # address:
- # port:
- ## jwt is one of the important configuration of the application
- ## jwt config cannot be null or empty
- jwtToken:
- secret: secret
- timeout: 1800000
- algorithm: HS512
- ## your datasource config
- source:
- initial-size: 1
- min-idle: 1
- max-wait: 30000
- max-active: 10
- break-after-acquire-failure: false
- connection-error-retry-attempts: 1
- time-between-eviction-runs-millis: 2000
- min-evictable-idle-time-millis: 600000
- max-evictable-idle-time-millis: 900000
- time-between-connect-error-millis: 60000
- test-while-idle: true
- test-on-borrow: false
- test-on-return: false
- validation-query: select 1
- validation-query-timeout: 10
- keep-alive: false
- filters: stat
- enable-query-log: false
- result-limit: 1000000
- screenshot:
- default_browser: CHROME
- timeout_second: 600
- chromedriver_path: /chrome-driver/linux/chromedriver
- # remote_webdriver_url: http://localhost:4446/wd/hub
- data-auth-center:
- channels:
- - name:
- base-url:
- auth-code:
- statistic:
- enable: false
- # You can use external elasticsearch storage [127.0.0.1:9300]
- elastic_urls:
- elastic_user:
- elastic_index_prefix:
- # You can also use external mysql storage
- mysql_url:
- mysql_username:
- mysql_password:
- # You can also use external kafka
- kafka.bootstrap.servers:
- kafka.topic:
- java.security.krb5.conf:
- java.security.keytab:
- java.security.principal:
- encryption:
- maxEncryptSize: 1024
- type: Off # Off is to turn off encryption, to enable encryption, please select AES or RSA
- resources:
- static-locations: classpath:/META-INF/resources/, classpath:/resources/, classpath:/static/, file:${file.userfiles-path}, file:${file.web_resources}
- mvc:
- static-path-pattern: /**
- thymeleaf:
- mode: HTML
- cache: true
- prefix: classpath:/templates/
- encoding: UTF-8
- suffix: .html
- check-template-location: true
- template-resolver-order: 1
- jackson:
- date-format: yyyy-MM-dd HH:mm:ss
- time-zone: GMT+8
- logging:
- config: classpath:config/logback.xml
- ## nacos 配置
- nacos:
- discovery:
- server-addr: ${NACOS_DISCOVERY_SERVER_ADDR:127.0.0.1:8848}
- config:
- server-addr: ${NACOS_CONFIG_SERVER_ADDR:127.0.0.1:8848}
- springfox:
- documentation:
- swagger:
- v2:
- path: /api-doc
- pagehelper:
- supportMethodsArguments: true
- reasonable: true
- returnPageInfo: check
- helperDialect: mysql
- params: count=countSql
- mybatis:
- mapper-locations: classpath:mybatis/mapper/*Mapper.xml
- config-locations: classpath:mybatis/mybatis-config.xml
- type-aliases-package: edp.davinci.model
- configuration:
- map-underscore-to-camel-case: true
- use-generated-keys: true
- log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
- mapper:
- identity: MYSQL
- not-empty: false
- mappers: edp.davinci.dao
- sql-template-delimiter: $
- custom-datasource-driver-path: classpath:/config/datasource_driver.yml
|