Files
wuhan-saga/server/target/classes/application.yml

79 lines
2.0 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

server:
port: 8080
servlet:
context-path: /api
spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/wuhan_saga?serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8
username: root
password: 135827
druid:
initial-size: 5
min-idle: 5
max-active: 20
max-wait: 60000
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 300000
validation-query: SELECT 1
test-while-idle: true
test-on-borrow: false
test-on-return: false
sql:
init:
mode: never
data:
redis:
host: localhost
port: 6379
database: 0
timeout: 5000ms
servlet:
multipart:
max-file-size: 50MB
max-request-size: 100MB
mybatis:
mapper-locations: classpath:mapper/**/*.xml
type-aliases-package: com.wuhansaga.server.entity
configuration:
map-underscore-to-camel-case: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
sa-token:
token-name: Authorization
timeout: 86400
active-timeout: -1
is-concurrent: true
is-share: true
token-style: uuid
is-log: false
knife4j:
enable: true
setting:
language: zh_cn
# 存储local=本机 uploads | minio=对象存储9000 为 API不是控制台 9001
# 密钥可用环境变量覆盖MINIO_ACCESS_KEY、MINIO_SECRET_KEY勿将生产密码提交到公开仓库
upload:
storage: minio
path: uploads/
allowed-types: image/jpeg,image/png,image/gif,image/webp,image/svg+xml,video/mp4,video/webm
max-size: 52428800
minio:
endpoint: http://117.72.159.31:9000
access-key: ${MINIO_ACCESS_KEY:minioadmin}
secret-key: ${MINIO_SECRET_KEY:minioadmin}
bucket: wuhan-saga
region: us-east-1
# 新闻中心多站点:单部署实例默认站点;扩展编码时改 allowed-site-codes 与库内数据
app:
portal:
site-code: wuhansaga
allowed-site-codes: wuhansaga,saga-secondary