mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-03 04:18:21 +08:00
release 配置文件
This commit is contained in:
parent
e9c36123c8
commit
08bf408d4a
@ -176,8 +176,7 @@ function start() {
|
||||
echo "silence auto exit 0,${pid}"
|
||||
exit 0
|
||||
fi
|
||||
sleep 2s
|
||||
tail -f --pid="$pid" "$agent_log"
|
||||
tail -fn 0 --pid="$pid" "$agent_log"
|
||||
}
|
||||
|
||||
function stop() {
|
||||
|
@ -3,58 +3,45 @@ jpom:
|
||||
path:
|
||||
authorize:
|
||||
# agent 端管理账号,必填。
|
||||
agentName: jpomAgent
|
||||
agent-name: jpomAgent
|
||||
# agent 端管理密码,非必填,如果为空Jpom 会自动生成一串随机字符串当密码
|
||||
agentPwd:
|
||||
agent:
|
||||
# 设置插件端id,配置自动注册服务端需要
|
||||
id:
|
||||
# 当前节点插件端可以访问的url ,如果不设置将使用http://+本地IP+端口
|
||||
url:
|
||||
server:
|
||||
# 设置服务端的url
|
||||
url:
|
||||
# 服务器接口请求token
|
||||
token:
|
||||
whitelistDirectory:
|
||||
agent-pwd:
|
||||
whitelist:
|
||||
# 白名单目录是否验证包含关系
|
||||
checkStartsWith: true
|
||||
log:
|
||||
# 检测控制台日志周期,防止日志文件过大,目前暂只支持linux 不停服备份
|
||||
autoBackConsoleCron: 0 0/10 * * * ?
|
||||
# 控制台日志文件保留大小
|
||||
autoBackSize: 50MB
|
||||
# 是否自动将控制台日志文件备份
|
||||
autoBackToFile: true
|
||||
# 保存天数 配置错误或者没有,默认是7天
|
||||
saveDays: 7
|
||||
# 日志文件的编码格式,如果没有指定就自动识别,自动识别可能出现不准确的情况
|
||||
fileCharset:
|
||||
# 查看日志时初始读取最后多少行(默认10,0不读取)
|
||||
intiReadLine: 10
|
||||
consoleLog:
|
||||
# 是否记录接口请求日志
|
||||
reqXss: true
|
||||
# 是否记录接口响应日志
|
||||
reqResponse: true
|
||||
# 控制台编码格式
|
||||
charset:
|
||||
project:
|
||||
check-starts-with: true
|
||||
project:
|
||||
# 停止、启动项目(项目状态检测)等待的时长 单位秒
|
||||
stopWaitTime: 10
|
||||
status-wait-time: 10
|
||||
# 项目文件备份保留个数,大于 0 才会备份
|
||||
fileBackupCount: 0
|
||||
file-backup-count: 0
|
||||
# 限制备份指定文件后缀(支持正则)
|
||||
#fileBackupSuffix: [ '.jar','.html','^.+\\.(?i)(txt)$' ]
|
||||
file-backup-suffix: [ '.jar','.html','^.+\\.(?i)(txt)$' ]
|
||||
# 项目状态检测间隔时间 单位毫秒,最小为1毫秒
|
||||
statusDetectionInterval: 500
|
||||
system:
|
||||
status-detection-interval: 500
|
||||
log:
|
||||
# 检测控制台日志周期,防止日志文件过大,目前暂只支持linux 不停服备份
|
||||
auto-backup-console-cron: 0 0/10 * * * ?
|
||||
# 控制台日志文件保留大小
|
||||
auto-backup-size: 50MB
|
||||
# 是否自动将控制台日志文件备份
|
||||
auto-backup-to-file: true
|
||||
# 保存天数 配置错误或者没有,默认是7天
|
||||
save-days: 7
|
||||
# 日志文件的编码格式
|
||||
file-charset:
|
||||
# 查看日志时初始读取最后多少行(默认10,0不读取)
|
||||
init-read-line: 10
|
||||
system:
|
||||
# cron 定时器是否开启匹配秒
|
||||
timerMatchSecond: false
|
||||
timer-match-second: false
|
||||
# 旧包文件保留个数
|
||||
oldJarsCount: 2
|
||||
old-jars-count: 2
|
||||
# Check the url for the new version
|
||||
remoteVersionUrl:
|
||||
remote-version-url:
|
||||
# 系统日志编码格式
|
||||
log-charset: UTF-8
|
||||
# 控制台编码格式
|
||||
console-charset:
|
||||
|
||||
server:
|
||||
#运行端口号
|
||||
@ -69,10 +56,6 @@ server:
|
||||
tomcat:
|
||||
uri-encoding: UTF-8
|
||||
spring:
|
||||
application:
|
||||
name: jpom agent
|
||||
profiles:
|
||||
active: default
|
||||
servlet:
|
||||
session:
|
||||
timeout: 1H
|
||||
|
@ -65,4 +65,22 @@
|
||||
<root level="info">
|
||||
<appender-ref ref="LOG-ROOT"/>
|
||||
</root>
|
||||
|
||||
<logger name="org.springframework.web.servlet.DispatcherServlet" additivity="false">
|
||||
<!-- 打印请求信息, debug 才输出-->
|
||||
<level value="INFO"/>
|
||||
<appender-ref ref="LOG-ROOT"/>
|
||||
</logger>
|
||||
|
||||
<logger name="io.jpom.system.WebAopLog" additivity="false">
|
||||
<!--请求响应日志 debug 才输出-->
|
||||
<level value="INFO"/>
|
||||
<appender-ref ref="LOG-ROOT"/>
|
||||
</logger>
|
||||
|
||||
<logger name="io.jpom" additivity="false">
|
||||
<!--建议使用 info 级别-->
|
||||
<level value="INFO"/>
|
||||
<appender-ref ref="LOG-ROOT"/>
|
||||
</logger>
|
||||
</configuration>
|
||||
|
@ -68,7 +68,7 @@
|
||||
</root>
|
||||
|
||||
<logger name="org.springframework.web.servlet.DispatcherServlet" additivity="false">
|
||||
<!-- 打印请求信息方式二-->
|
||||
<!-- 打印请求信息-->
|
||||
<level value="debug"/>
|
||||
<appender-ref ref="LOG-ROOT"/>
|
||||
<appender-ref ref="STDOUT"/>
|
||||
|
@ -179,8 +179,7 @@ function start() {
|
||||
echo "silence auto exit 0,${pid}"
|
||||
exit 0
|
||||
fi
|
||||
sleep 2s
|
||||
tail -f --pid="$pid" "$server_log"
|
||||
tail -fn 0 --pid="$pid" "$server_log"
|
||||
}
|
||||
|
||||
function stop() {
|
||||
|
@ -1,100 +1,89 @@
|
||||
jpom:
|
||||
# jpom 数据存储路径, 如果调试模式运行默认路径为【${user.home}/jpom/】,安装运行默认为jar包文件的父级
|
||||
path:
|
||||
authorize:
|
||||
node:
|
||||
# 节点心跳监控时间 (需要大于零) 单位秒 最小配置 5秒
|
||||
heart-second: 30
|
||||
# 上传文件的超时时间 单位秒,最短5秒钟
|
||||
upload-file-timeout: 300
|
||||
system:
|
||||
# cron 定时器是否开启匹配秒
|
||||
timer-match-second: false
|
||||
# 旧包文件保留个数
|
||||
old-jars-count: 2
|
||||
# Check the url for the new version
|
||||
remote-version-url:
|
||||
# 系统日志编码格式
|
||||
log-charset: UTF-8
|
||||
# 控制台编码格式
|
||||
console-charset:
|
||||
user:
|
||||
# 用户连续登录失败次数,超过此数将被限制登录
|
||||
always-login-error: 5
|
||||
# IP连续登录失败次数,超过此数将被限制登录
|
||||
always-ip-login-error: 10
|
||||
# 当ip连续登录失败,锁定对应IP时长,5h、1d
|
||||
ip-error-lock-time: 5h
|
||||
# 是否强制提醒用户开启 mfa
|
||||
force-mfa: false
|
||||
#登录token失效时间(单位:小时),默认为24
|
||||
expired: 24
|
||||
token-expired: 24
|
||||
#登录token失效后自动续签时间(单位:分钟),默认为60,不自动续签
|
||||
renewal: 60
|
||||
token-renewal: 60
|
||||
# jwt 签名(加密)的key 长度建议控制到 16位
|
||||
key:
|
||||
# 前端接口 超时时间 单位秒
|
||||
webApiTimeout: 20
|
||||
token-jwt-key:
|
||||
web:
|
||||
# 前端接口 超时时间 单位秒(最小 5 秒)
|
||||
api-timeout: 20
|
||||
# 系统名称
|
||||
name:
|
||||
# 副标题
|
||||
subTitle:
|
||||
sub-title:
|
||||
# 登录页名称
|
||||
loginTitle:
|
||||
login-title:
|
||||
# logo 文件路径(绝对路径、http) 文件限制后缀:jpg、png、gif
|
||||
logoFile:
|
||||
logo-file:
|
||||
# icon 文件路径(绝对路径、http),建议规格 12×12、16×16、24×24、32×32、48×48 , 文件限制后缀 ico、png
|
||||
iconFile:
|
||||
icon-file:
|
||||
# 禁用页面引导导航
|
||||
disabledGuide: false
|
||||
disabled-guide: false
|
||||
# 禁用登录图形验证码 (一般用于服务器没有字体或者开启了两部验证后才关闭图形验证码)
|
||||
disabledCaptcha: false
|
||||
disabled-captcha: false
|
||||
# 前端消息弹出位置,可选 topLeft topRight bottomLeft bottomRight
|
||||
notificationPlacement:
|
||||
user:
|
||||
# 最多能创建多少个用户
|
||||
maxCount: 10
|
||||
# 用户连续登录失败次数,超过此数将被限制登录
|
||||
alwaysLoginError: 5
|
||||
# IP连续登录失败次数,超过此数将被限制登录
|
||||
alwaysIpLoginError: 10
|
||||
# 当ip连续登录失败,锁定对应IP时长,5h、1d
|
||||
ipErrorLockTime: 5h
|
||||
# 是否强制提醒用户开启 mfa
|
||||
forceMfa: false
|
||||
consoleLog:
|
||||
# 是否记录接口请求日志
|
||||
reqXss: true
|
||||
# 是否记录接口响应日志
|
||||
reqResponse: true
|
||||
# 控制台编码格式
|
||||
charset:
|
||||
log:
|
||||
# 日志文件的编码格式,如果没有指定就自动识别,自动识别可能出现不准确的情况
|
||||
fileCharset:
|
||||
notification-placement:
|
||||
# 查看日志时初始读取最后多少行(默认10,0不读取)
|
||||
intiReadLine: 10
|
||||
db:
|
||||
init-read-line: 10
|
||||
db:
|
||||
# 日志存储条数,将自动清理旧数据,配置小于等于零则不清理
|
||||
logStorageCount: 10000
|
||||
log-storage-count: 10000
|
||||
# 数据库账号 默认 jpom
|
||||
userName: jpom
|
||||
user-name: jpom
|
||||
# 数据库密码 默认 jpom 如果自行配置请保证密码强度
|
||||
userPwd: jpom
|
||||
user-pwd: jpom
|
||||
# h2 数据库缓存大小 kilobyte 1KB 1,024 megabyte 1MB 1,048,576
|
||||
cacheSize: 50MB
|
||||
cache-size: 50MB
|
||||
# 自动备份间隔天数 小于等于 0 不自动备份
|
||||
autoBackupIntervalDay: 1
|
||||
auto-backup-interval-day: 1
|
||||
# 自动备份保留天数 小于等于 0,不自动删除自动备份数据
|
||||
autoBackupReserveDay: 5
|
||||
auto-backup-reserve-day: 5
|
||||
# 数据库连接池相关配置
|
||||
maxActive: 100
|
||||
initialSize: 10
|
||||
maxWait: 10
|
||||
minIdle: 1
|
||||
|
||||
# 构建相关配置
|
||||
build:
|
||||
max-active: 100
|
||||
initial-size: 10
|
||||
max-wait: 10
|
||||
min-idle: 1
|
||||
# 构建相关配置
|
||||
build:
|
||||
# 最多保存多少份历史记录
|
||||
maxHistoryCount: 1000
|
||||
max-history-count: 1000
|
||||
# 单个最多保存多少份历史记录
|
||||
itemMaxHistoryCount: 50
|
||||
item-max-history-count: 50
|
||||
# 构建命令是否检查 存在删除命令
|
||||
checkDeleteCommand: true
|
||||
check-delete-command: true
|
||||
# 构建线程池大小,小于 1 则为不限制,默认大小为 5
|
||||
poolSize: 5
|
||||
pool-size: 5
|
||||
# 构建任务等待数量,超过此数量将取消构建任务,值最小为 1
|
||||
poolWaitQueue: 10
|
||||
ssh:
|
||||
# ssh 执行命令的 默认加载的环境变量
|
||||
initEnv: source /etc/profile && source ~/.bash_profile && source ~/.bashrc
|
||||
node:
|
||||
# 上传文件的超时时间 单位秒,最短5秒钟
|
||||
uploadFileTimeOut: 300
|
||||
system:
|
||||
# cron 定时器是否开启匹配秒
|
||||
timerMatchSecond: false
|
||||
# 节点心跳监控时间 (需要大于零) 单位秒 最小配置 5秒
|
||||
nodeHeartSecond: 30
|
||||
# 旧包文件保留个数
|
||||
oldJarsCount: 2
|
||||
# Check the url for the new version
|
||||
remoteVersionUrl:
|
||||
pool-wait-queue: 10
|
||||
|
||||
server:
|
||||
#运行端口号
|
||||
port: 2122
|
||||
@ -120,10 +109,6 @@ spring:
|
||||
web:
|
||||
resources:
|
||||
static-locations: classpath:/dist/
|
||||
application:
|
||||
name: jpom server
|
||||
profiles:
|
||||
active: default
|
||||
mvc:
|
||||
throw-exception-if-no-handler-found: true
|
||||
log-request-details: true
|
||||
|
@ -43,10 +43,10 @@
|
||||
<sift>
|
||||
<appender name="FILE-${destination}" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<File>${logPath}/${destination}.log</File>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<rollingPolicy
|
||||
class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<!-- rollover daily -->
|
||||
<fileNamePattern>${logPath}/%d{yyyy-MM-dd}/${destination}-%d{yyyy-MM-dd}-%i.log.gz
|
||||
</fileNamePattern>
|
||||
<fileNamePattern>${logPath}/%d{yyyy-MM-dd}/${destination}-%d{yyyy-MM-dd}-%i.log</fileNamePattern>
|
||||
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
||||
<!-- or whenever the file size reaches 100MB -->
|
||||
<maxFileSize>512MB</maxFileSize>
|
||||
@ -63,12 +63,25 @@
|
||||
</appender>
|
||||
|
||||
|
||||
<root level="info">
|
||||
<root level="INFO">
|
||||
<appender-ref ref="LOG-ROOT"/>
|
||||
</root>
|
||||
|
||||
<logger name="org.springframework.web.servlet.DispatcherServlet" additivity="false">
|
||||
<!-- 打印请求信息 debug 才输出 -->
|
||||
<level value="debug"/>
|
||||
<appender-ref ref="LOG-ROOT"/>
|
||||
</logger>
|
||||
|
||||
<logger name="io.jpom.system.WebAopLog" additivity="false">
|
||||
<!--请求响应日志 debug 才输出-->
|
||||
<level value="INFO"/>
|
||||
<appender-ref ref="LOG-ROOT"/>
|
||||
</logger>
|
||||
|
||||
<logger name="io.jpom" additivity="false">
|
||||
<level value="info"/>
|
||||
<!--建议使用 info 级别-->
|
||||
<level value="INFO"/>
|
||||
<appender-ref ref="LOG-ROOT"/>
|
||||
</logger>
|
||||
</configuration>
|
||||
|
Loading…
Reference in New Issue
Block a user