Files
orion-visor/orion-visor-launch/src/main/resources/application-prod.yaml

165 lines
4.4 KiB
YAML
Raw Normal View History

spring:
datasource:
druid:
2025-09-29 13:35:47 +08:00
url: jdbc:mysql://${MYSQL_HOST:127.0.0.1}:${MYSQL_PORT:3306}/${MYSQL_DATABASE:orion_visor}?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=Asia/Shanghai&autoReconnect=true&rewriteBatchedStatements=true&useServerPrepStmts=false
2024-02-25 00:18:08 +08:00
username: ${MYSQL_USER:root}
password: ${MYSQL_PASSWORD:Data@123456}
# 初始连接数
initial-size: 5
# 最小连接池数量
min-idle: 5
# 最大连接池数量
max-active: 20
2024-06-11 11:12:44 +08:00
# 控制台
stat-view-servlet:
enabled: true
2024-06-11 11:12:44 +08:00
login-username: ${DRUID_USERNAME:admin}
login-password: ${DRUID_PASSWORD:admin}
web-stat-filter:
enabled: true
filter:
stat:
enabled: true
redis:
2024-02-25 00:18:08 +08:00
host: ${REDIS_HOST:127.0.0.1}
port: ${REDIS_PORT:6379}
password: ${REDIS_PASSWORD:Data@123456}
2025-07-02 23:43:01 +08:00
database: ${REDIS_DATABASE:0}
data-version: ${REDIS_DATA_VERSION:1}
2024-03-27 15:30:03 +08:00
redisson:
threads: 4
netty-threads: 4
2024-06-04 11:33:09 +08:00
minimum-idle-size: 4
2025-09-09 23:46:02 +08:00
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}
2024-03-29 11:12:34 +08:00
quartz:
properties:
org:
quartz:
threadPool:
threadCount: 10
2024-06-11 11:12:44 +08:00
boot:
admin:
client:
enabled: true
server:
enabled: true
2025-06-25 18:57:05 +08:00
guacd:
host: ${GUACD_HOST:127.0.0.1}
port: ${GUACD_PORT:4822}
drive-path: ${GUACD_DRIVE_PATH:/usr/share/guacd/drive}
2024-06-11 11:12:44 +08:00
management:
endpoints:
enabled-by-default: true
springdoc:
api-docs:
enabled: false
swagger-ui:
enabled: false
knife4j:
enable: false
2024-06-11 11:12:44 +08:00
production: true
2023-06-29 15:53:38 +08:00
2023-07-08 02:11:30 +08:00
orion:
2024-05-23 13:56:03 +08:00
# 是否为演示模式
demo: ${DEMO_MODE:false}
2025-09-09 23:46:02 +08:00
api:
# 是否允许跨域
cors: ${API_CORS:true}
expose:
# 暴露接口请求头值
token: ${API_EXPOSE_TOKEN:pmqeHOyZaumHm0Wt}
2023-07-11 11:00:46 +08:00
logging:
printer:
2025-09-09 23:46:02 +08:00
mode: PRETTY
2025-01-08 11:40:42 +08:00
encrypt:
2023-07-08 02:11:30 +08:00
aes:
2024-05-17 12:26:01 +08:00
# 加密密钥
2024-02-25 00:18:08 +08:00
secret-key: ${SECRET_KEY:uQeacXV8b3isvKLK}
2025-10-07 00:28:49 +08:00
app:
executors:
# 默认异步线程池
asyncExecutor:
mdc: true
2023-07-11 11:00:46 +08:00
core-pool-size: 8
max-pool-size: 16
2025-10-07 00:28:49 +08:00
queue-capacity: 100
allow-core-timeout: false
thread-name-prefix: async-executor-
# 指标存储异步线程池
metricsExecutor:
mdc: true
core-pool-size: 4
max-pool-size: 4
queue-capacity: 1000
allow-core-timeout: true
thread-name-prefix: metrics-task-
# 推送异步线程池
pushExecutor:
mdc: true
core-pool-size: 4
max-pool-size: 4
queue-capacity: 1000
allow-core-timeout: true
thread-name-prefix: message-push-
# 探针安装线程池
agentInstallExecutor:
allow-core-timeout: true
thread-name-prefix: agent-install-
# 终端标准输出线程池
terminalStdoutExecutor:
synchronous-queue: true
allow-core-timeout: true
thread-name-prefix: terminal-stdout-
# 终端操作线程池
terminalOperatorExecutor:
synchronous-queue: true
allow-core-timeout: true
thread-name-prefix: terminal-operator-
# 终端异步保存线程池
terminalAsyncSaverExecutor:
core-pool-size: 1
max-pool-size: 1
queue-capacity: 1000
allow-core-timeout: true
thread-name-prefix: terminal-watcher-
# 批量执行超时检查线程池
execTimeoutCheckExecutor:
synchronous-queue: true
allow-core-timeout: true
thread-name-prefix: timeout-check-
# 批量执行任务线程池
execTaskExecutor:
synchronous-queue: true
allow-core-timeout: true
thread-name-prefix: exec-task-
# 批量执行主机命令线程池
execHostCommandExecutor:
synchronous-queue: true
allow-core-timeout: true
thread-name-prefix: exec-host-
# 批量执行日志查看线程池
execLogViewExecutor:
synchronous-queue: true
allow-core-timeout: true
thread-name-prefix: exec-log-
# 批量上传任务线程池
uploadTaskExecutor:
synchronous-queue: true
allow-core-timeout: true
thread-name-prefix: upload-task-
# 批量上传主机线程池
uploadHostExecutor:
synchronous-queue: true
allow-core-timeout: true
thread-name-prefix: upload-host-