Files
orion-visor/orion-ops-server/src/main/resources/application.yaml

91 lines
2.0 KiB
YAML
Raw Normal View History

2023-06-20 16:05:15 +08:00
server:
port: 9200
spring:
application:
name: orion-ops-server
profiles:
active: dev
main:
# 允许循环依赖
allow-circular-references: true
servlet:
# 文件上传相关配置项
multipart:
# 单个文件大小
max-file-size: 16MB
# 设置总上传的文件大小
max-request-size: 32MB
mvc:
pathmatch:
matching-strategy: ANT_PATH_MATCHER
datasource:
druid:
driver-class-name: com.mysql.cj.jdbc.Driver
# 初始连接数
initial-size: 5
# 最小连接池数量
min-idle: 5
# 最大连接池数量
max-active: 20
# 配置获取连接等待超时的时间
max-wait: 600000
# 检测间隔
time-between-eviction-runs-millis: 60000
# 最小生存的时间
min-evictable-idle-time-millis: 300000
# 最大生存的时间
max-evictable-idle-time-millis: 900000
validation-query: SELECT 1
web-stat-filter:
enabled: true
stat-view-servlet:
enabled: true
url-pattern: /druid/*
login-username:
login-password:
filter:
stat:
enabled: true
log-slow-sql: true
slow-sql-millis: 800
merge-sql: true
wall:
config:
multi-statement-allow: true
2023-06-20 16:05:15 +08:00
2023-06-21 18:34:22 +08:00
springdoc:
api-docs:
enabled: true
path: /v3/api-docs
swagger-ui:
enabled: true
path: /swagger-ui
tags-sorter: alpha
operations-sorter: alpha
show-extensions: true
knife4j:
enable: true
setting:
language: zh_cn
2023-06-20 16:05:15 +08:00
orion:
# 版本
version: @revision@
2023-06-21 18:34:22 +08:00
# api 信息
2023-06-20 16:05:15 +08:00
api:
# 公共api前缀
prefix: /orion-api
# 是否开启跨域
cors: true
2023-06-21 18:34:22 +08:00
# 文档配置
swagger:
title: orion-ops-pro 运维平台
description: 一站式提供运维功能
version: ${orion.version}
url: https://github.com/lijiahangmax/orion-ops-pro
email: ljh1553488six@139.com
license: Apache-2.0
license-url: https://github.com/lijiahangmax/orion-ops-pro/blob/main/LICENSE