91 lines
2.0 KiB
YAML
91 lines
2.0 KiB
YAML
config:
|
|
port: 9963
|
|
app-name: pan-disk
|
|
app-version: 1.1
|
|
data-source:
|
|
mysql:
|
|
username: pan
|
|
password: PhXCRiCfEmiGesEm
|
|
host: 10.0.0.4
|
|
port: 3307
|
|
database: pan
|
|
redis:
|
|
host: 10.0.0.4
|
|
port: 6380
|
|
database: 0
|
|
username: ''
|
|
password: redis_kTJpsa
|
|
|
|
|
|
spring:
|
|
application:
|
|
name: ${config.app-name}
|
|
version: ${config.app-version}
|
|
banner:
|
|
location: classpath:banner/banner.txt
|
|
datasource:
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
url: jdbc:mysql://${config.data-source.mysql.host}:${config.data-source.mysql.port}/${config.data-source.mysql.database}?rewriteBatchedStatements=true
|
|
username: ${config.data-source.mysql.username}
|
|
password: ${config.data-source.mysql.password}
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
druid:
|
|
initial-size: 0
|
|
min-idle: 0
|
|
maxActive: 1024
|
|
connect-timeout: 1000
|
|
data:
|
|
redis:
|
|
host: ${config.data-source.redis.host}
|
|
port: ${config.data-source.redis.port}
|
|
database: ${config.data-source.redis.database}
|
|
password: ${config.data-source.redis.password}
|
|
username: ${config.data-source.redis.username}
|
|
connect-timeout: 5s
|
|
timeout: 5s
|
|
lettuce:
|
|
pool:
|
|
min-idle: 0
|
|
max-idle: 16
|
|
max-active: 16
|
|
max-wait: 5s
|
|
mvc:
|
|
static-path-pattern: /static/**
|
|
web:
|
|
resources:
|
|
static-locations: classpath:/html/static
|
|
|
|
|
|
server:
|
|
port: ${config.port}
|
|
|
|
|
|
sa-token:
|
|
token-name: Authorization
|
|
timeout: 2592000
|
|
active-timeout: -1
|
|
is-concurrent: true
|
|
is-share: false
|
|
token-style: random-128
|
|
is-log: false
|
|
jwt-secret-key: pzmqljgvdyidabacksmoaghgyikxoasckjhgyuhij
|
|
token-prefix: Bearer
|
|
is-read-body: false
|
|
is-read-cookie: false
|
|
|
|
|
|
mybatis-plus:
|
|
type-handlers-package: com.mingliqiye.disk.typeHandlers
|
|
configuration:
|
|
cache-enabled: true
|
|
|
|
global-config:
|
|
db-config:
|
|
id-type: auto
|
|
|
|
springdoc:
|
|
swagger-ui:
|
|
enabled: false
|
|
api-docs:
|
|
path: /apis/swagger/api.json
|