🔨 修改配置文件.
This commit is contained in:
13
.env.example
13
.env.example
@@ -1,10 +1,13 @@
|
|||||||
VOLUME_BASE=/data/orion-visor-space/docker-volumes
|
VOLUME_BASE=/data/orion-visor-space/docker-volumes
|
||||||
|
|
||||||
DEMO_MODE=false
|
|
||||||
|
|
||||||
SERVICE_PORT=1081
|
SERVICE_PORT=1081
|
||||||
SPRING_PROFILES_ACTIVE=prod
|
SPRING_PROFILES_ACTIVE=prod
|
||||||
|
|
||||||
|
DEMO_MODE=false
|
||||||
|
|
||||||
|
API_CORS=true
|
||||||
SECRET_KEY=uQeacXV8b3isvKLK
|
SECRET_KEY=uQeacXV8b3isvKLK
|
||||||
|
API_EXPOSE_TOKEN=pmqeHOyZaumHm0Wt
|
||||||
|
|
||||||
MYSQL_HOST=mysql
|
MYSQL_HOST=mysql
|
||||||
MYSQL_PORT=3306
|
MYSQL_PORT=3306
|
||||||
@@ -25,3 +28,9 @@ GUACD_SSH_USERNAME=guacd
|
|||||||
GUACD_SSH_PASSWORD=guacd
|
GUACD_SSH_PASSWORD=guacd
|
||||||
GUACD_DRIVE_PATH=/drive
|
GUACD_DRIVE_PATH=/drive
|
||||||
|
|
||||||
|
INFLUXDB_ENABLED=true
|
||||||
|
INFLUXDB_HOST=influxdb
|
||||||
|
INFLUXDB_PORT=8086
|
||||||
|
INFLUXDB_ORG=orion-visor
|
||||||
|
INFLUXDB_BUCKET=metrics
|
||||||
|
INFLUXDB_TOKEN=Data@123456
|
||||||
|
|||||||
@@ -20,6 +20,12 @@ spring:
|
|||||||
threads: 2
|
threads: 2
|
||||||
netty-threads: 2
|
netty-threads: 2
|
||||||
minimum-idle-size: 2
|
minimum-idle-size: 2
|
||||||
|
influxdb:
|
||||||
|
enabled: ${INFLUXDB_ENABLED:true}
|
||||||
|
url: http://${INFLUXDB_HOST:127.0.0.1}:${INFLUXDB_PORT:8086}
|
||||||
|
org: ${INFLUXDB_ORG:orion-visor}
|
||||||
|
bucket: ${INFLUXDB_BUCKET:metrics}
|
||||||
|
token: ${INFLUXDB_TOKEN:Data@123456}
|
||||||
boot:
|
boot:
|
||||||
admin:
|
admin:
|
||||||
client:
|
client:
|
||||||
|
|||||||
@@ -30,6 +30,12 @@ spring:
|
|||||||
threads: 4
|
threads: 4
|
||||||
netty-threads: 4
|
netty-threads: 4
|
||||||
minimum-idle-size: 4
|
minimum-idle-size: 4
|
||||||
|
influxdb:
|
||||||
|
enabled: ${INFLUXDB_ENABLED:true}
|
||||||
|
url: http://${INFLUXDB_HOST:127.0.0.1}:${INFLUXDB_PORT:8086}
|
||||||
|
org: ${INFLUXDB_ORG:orion-visor}
|
||||||
|
bucket: ${INFLUXDB_BUCKET:metrics}
|
||||||
|
token: ${INFLUXDB_TOKEN:Data@123456}
|
||||||
quartz:
|
quartz:
|
||||||
properties:
|
properties:
|
||||||
org:
|
org:
|
||||||
@@ -65,9 +71,15 @@ knife4j:
|
|||||||
orion:
|
orion:
|
||||||
# 是否为演示模式
|
# 是否为演示模式
|
||||||
demo: ${DEMO_MODE:false}
|
demo: ${DEMO_MODE:false}
|
||||||
|
api:
|
||||||
|
# 是否允许跨域
|
||||||
|
cors: ${API_CORS:true}
|
||||||
|
expose:
|
||||||
|
# 暴露接口请求头值
|
||||||
|
token: ${API_EXPOSE_TOKEN:pmqeHOyZaumHm0Wt}
|
||||||
logging:
|
logging:
|
||||||
printer:
|
printer:
|
||||||
mode: ROW
|
mode: PRETTY
|
||||||
encrypt:
|
encrypt:
|
||||||
aes:
|
aes:
|
||||||
# 加密密钥
|
# 加密密钥
|
||||||
|
|||||||
@@ -13,9 +13,9 @@ spring:
|
|||||||
# 文件上传相关配置项
|
# 文件上传相关配置项
|
||||||
multipart:
|
multipart:
|
||||||
# 单个文件大小
|
# 单个文件大小
|
||||||
max-file-size: 16MB
|
max-file-size: 128MB
|
||||||
# 消息体大小
|
# 消息体大小
|
||||||
max-request-size: 32MB
|
max-request-size: 128MB
|
||||||
mvc:
|
mvc:
|
||||||
pathmatch:
|
pathmatch:
|
||||||
matching-strategy: ANT_PATH_MATCHER
|
matching-strategy: ANT_PATH_MATCHER
|
||||||
@@ -170,6 +170,12 @@ orion:
|
|||||||
prefix: ${orion.prefix}/api
|
prefix: ${orion.prefix}/api
|
||||||
# 是否允许跨域
|
# 是否允许跨域
|
||||||
cors: true
|
cors: true
|
||||||
|
# 对外服务
|
||||||
|
expose:
|
||||||
|
# 暴露接口请求头
|
||||||
|
header: X-Server-Token
|
||||||
|
# 暴露接口请求头值
|
||||||
|
token: 96QEPoOChlMfAEPn
|
||||||
websocket:
|
websocket:
|
||||||
# 公共 websocket 前缀
|
# 公共 websocket 前缀
|
||||||
prefix: ${orion.prefix}/keep-alive
|
prefix: ${orion.prefix}/keep-alive
|
||||||
@@ -202,14 +208,17 @@ orion:
|
|||||||
terminal:
|
terminal:
|
||||||
group: "terminal - 终端模块"
|
group: "terminal - 终端模块"
|
||||||
path: "terminal"
|
path: "terminal"
|
||||||
|
monitor:
|
||||||
|
group: "monitor - 监控模块"
|
||||||
|
path: "monitor"
|
||||||
logging:
|
logging:
|
||||||
# 全局日志打印
|
# 全局日志打印
|
||||||
printer:
|
printer:
|
||||||
mode: PRETTY
|
mode: PRETTY
|
||||||
expression: 'execution (* org.dromara.visor..*.controller..*.*(..))'
|
expression: 'execution (* org.dromara.visor..*.controller..*.*(..))'
|
||||||
headers:
|
headers:
|
||||||
- user-agent,accept
|
- User-Agent,Accept
|
||||||
- content-type
|
- X-Agent-Version
|
||||||
# 下面引用了 需要注意
|
# 下面引用了 需要注意
|
||||||
field:
|
field:
|
||||||
ignore:
|
ignore:
|
||||||
|
|||||||
Reference in New Issue
Block a user