mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-09-29 07:56:37 +08:00
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
spring:
|
|
datasource:
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
url: jdbc:mysql://${DB_HOST}:3306/${DB_NAME}?useUnicode=true&useSSL=false&characterEncoding=utf8&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true
|
|
username: ${DB_USER}
|
|
password: ${DB_PASSWORD}
|
|
hikari:
|
|
max-lifetime: 500000
|
|
connection-timeout: 30000
|
|
idle-timeout: 600000
|
|
max-pool-size: 20
|
|
minimum-idle: 5
|
|
pool-name: HikariCP
|
|
auto-commit: true
|
|
connection-test-query: SELECT 1
|
|
servlet:
|
|
multipart:
|
|
max-file-size: 50MB
|
|
max-request-size: 50MB
|
|
lifecycle:
|
|
timeout-per-shutdown-phase: 30s
|
|
|
|
server:
|
|
port: 6365
|
|
tomcat:
|
|
uri-encoding: UTF-8
|
|
max-thread: 800
|
|
max-connections: 2000
|
|
max-swallow-size: 10MB
|
|
shutdown: graceful
|
|
|
|
mybatis-plus:
|
|
mapper-locations: classpath*:/mapper/**Mapper.xml
|
|
# configuration:
|
|
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
|
jwt-secret: ${JWT_SECRET}
|
|
log-dir: ${LOG_DIR}
|
|
server-addr: ${SERVER_ADDR}
|