From 3c0e5213c65419a6115ac9f36afae8489673485d Mon Sep 17 00:00:00 2001 From: xyli Date: Tue, 31 Jan 2023 14:05:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E8=BF=9E=E6=8E=A5=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/bin/extConfig.yml | 52 ++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 src/main/resources/bin/extConfig.yml diff --git a/src/main/resources/bin/extConfig.yml b/src/main/resources/bin/extConfig.yml new file mode 100644 index 0000000..4465c2c --- /dev/null +++ b/src/main/resources/bin/extConfig.yml @@ -0,0 +1,52 @@ +mpms: + # mpms 数据存储路径, 如果调试模式运行默认路径为【${user.home}/mpms/】,安装运行默认为jar包文件的父级 + path: + authorize: + # api接口请求token 长度要求大于等于6位,字母数字符号组合 + token: + #登录token失效时间(单位:小时),默认为24 + expired: 24 + #登录token失效后自动续签时间(单位:分钟),默认为60,不自动续签 + renewal: 60 + # jwt 签名(加密)的key 长度建议控制到 16位 + key: + # 前端接口 超时时间 单位秒 + webApiTimeout: 20 +user: + # 最多能创建多少个用户 + maxCount: 10 + # 用户连续登录失败次数,超过此数将被限制登录 + alwaysLoginError: 5 + # 当ip连续登录失败,锁定对应IP时长,单位毫秒 + ipErrorLockTime: 60*60*5*1000 +consoleLog: + # 是否记录接口请求日志 + reqXss: true + # 是否记录接口响应日志 + reqResponse: true +log: + # 日志文件的编码格式,如果没有指定就自动识别,自动识别可能出现不准确的情况 + fileCharset: + # 查看日志时初始读取最后多少行(默认10,0不读取) + intiReadLine: 10 +# spring 相关配置 +spring: + datasource: + type: com.alibaba.druid.pool.DruidDataSource + driver-class-name: com.mysql.jdbc.Driver + # driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://172.30.24.214:3306/PUBLIC?useSSL=false&Timezone=UTC&useUnicode=true&characterEncoding=utf8 + username: root + password: root +# 构建相关配置 +build: + # 最多保存多少份历史记录 + maxHistoryCount: 1000 + # 单个最多保存多少份历史记录 + itemMaxHistoryCount: 50 +ssh: + # ssh 执行命令的 默认加载的环境变量 + initEnv: source /etc/profile && source ~/.bash_profile && source ~/.bashrc +node: + # 上传文件的超时时间 单位秒,最短5秒钟 + uploadFileTimeOut: 300 -- Gitee