mkl_cas_ja/ruoyi-admin/src/main/resources/application.yml

193 lines
5.1 KiB
YAML
Raw Normal View History

2024-10-20 17:56:31 +08:00
# 项目相关配置
ruoyi:
# 名称
name: Makalu
# 版本
version: 4.6.1
# 版权年份
copyrightYear: 2022
# 实例演示开关
demoEnabled: false
# 文件路径 示例( Windows配置D:/ruoyi/uploadPathLinux配置 /home/ruoyi/uploadPath
#中铁一局建安公司
profile: /mnt/data/typt/uploadPath
2024-11-05 22:36:04 +08:00
# 安全生产、数字三局
# profile: /mnt/typt/uploadPath
2024-10-20 17:56:31 +08:00
# 本地
2024-11-05 22:36:04 +08:00
# profile: D://mnt/typt/uploadPath
2024-10-20 17:56:31 +08:00
# 获取ip地址开关
addressEnabled: true
# 开发环境配置
server:
# 服务器的HTTP端口默认为80
port: 9004
servlet:
# 应用的访问路径
context-path: /
tomcat:
# tomcat的URI编码
uri-encoding: UTF-8
# tomcat最大线程数默认为200
max-threads: 800
# Tomcat启动初始化的线程数默认值25
min-spare-threads: 30
# 日志配置
logging:
level:
com.ruoyi: debug
org.springframework: warn
# 用户配置
user:
password:
# 密码错误{maxRetryCount}次锁定10分钟
maxRetryCount: 5
# Spring配置
spring:
# 模板引擎
thymeleaf:
mode: HTML
encoding: utf-8
# 禁用缓存
cache: false
# 资源信息
messages:
# 国际化资源文件路径
basename: static/i18n/messages
jackson:
time-zone: GMT+8
date-format: yyyy-MM-dd HH:mm:ss
profiles:
active: druid
# 文件上传
servlet:
multipart:
# 单个文件大小
max-file-size: -1
# 设置总上传的文件大小
max-request-size: -1
# 服务模块
devtools:
restart:
# 热部署开关
enabled: true
# MyBatis
mybatis:
# 搜索指定包别名
typeAliasesPackage: com.ruoyi.**.domain
# 配置mapper的扫描找到所有的mapper.xml映射文件
mapperLocations: classpath*:mapper/**/*Mapper.xml
# 加载全局的配置文件
configLocation: classpath:mybatis/mybatis-config.xml
# PageHelper分页插件
pagehelper:
helperDialect: mysql
reasonable: true
supportMethodsArguments: true
params: count=countSql
# Shiro
shiro:
user:
# 登录地址
loginUrl: /login
# 权限认证失败地址
unauthorizedUrl: /unauth
# 首页地址
indexUrl: /system/jump
# 验证码开关
captchaEnabled: true
# 验证码类型 math 数组计算 char 字符
captchaType: math
cookie:
# 设置Cookie的域名 默认空,即当前访问的域名
domain:
# 设置cookie的有效访问路径
path: /
# 设置HttpOnly属性
httpOnly: true
# 设置Cookie的过期时间天为单位
maxAge: 30
# 设置密钥务必保持唯一性生成方式直接拷贝到main运行即可Base64.encodeToString(CipherUtils.generateNewKey(128, "AES").getEncoded()) 默认启动生成随机秘钥随机秘钥会导致之前客户端RememberMe Cookie无效如设置固定秘钥RememberMe Cookie则有效
cipherKey:
session:
# Session超时时间-1代表永不过期默认30分钟
expireTime: 30
# 同步session到数据库的周期默认1分钟
dbSyncPeriod: 1
# 相隔多久检查一次session的有效性默认就是10分钟
validationInterval: 10
# 同一个用户最大会话数比如2的意思是同一个账号允许最多同时两个人登录默认-1不限制
maxSession: -1
# 踢出之前登录的/之后登录的用户,默认踢出之前登录的用户
kickoutAfter: false
# 防止XSS攻击
xss:
# 过滤开关
enabled: true
# 排除链接(多个用逗号分隔)
excludes: /system/notice/*
# 匹配链接
urlPatterns: /system/*,/monitor/*,/tool/*
# Swagger配置
swagger:
# 是否开启swagger
enabled: true
# cas配置
cas:
client-name: CasClientTYPT
2024-11-05 22:36:04 +08:00
# client-name: CasClientTYPTSJ
# client-name: aqscClient
2024-10-20 17:56:31 +08:00
server:
2024-11-05 22:36:04 +08:00
# url: https://cas-ty.makalu.cc/cas
# url: https://cas-sj.makalu.cc/cas
url: https://jaszpt-cas.crfeb.com.cn/cas
# url: http://localhost:8080/cas
2024-10-20 17:56:31 +08:00
project:
2024-11-05 22:36:04 +08:00
# url: http://typt-t.makalu.cc
# url: https://typt-t1.makalu.cc
# url: https://szh.makalu.cc
# url: https://aqsc.makalu.cc
# url: http://127.0.0.1:9004
url: https://jaszpt.crfeb.com.cn
# url:https://sz-test.makalu.cc/
# url: https://ztsj.makalu.cc/
# url: https://szsj.makalu.cc/
user-center:
# url: https://user-center-sj.makalu.cc
url: https://jaszpt-usercenter.crfeb.com.cn
# url: https://user-center.makalu.cc
# url: 127.0.0.1:8099
2024-10-20 17:56:31 +08:00
# helmet文件下载路径路径配置
helmet:
2024-11-05 22:36:04 +08:00
#建安公司数字化集成管控平台
2024-10-20 17:56:31 +08:00
localFilePath: /mnt/data/aqm/
2024-11-05 22:36:04 +08:00
downloadFileHost: https://jaszpt.crfeb.com.cn/typt/
2024-10-20 17:56:31 +08:00
downloadWritePath: /mnt/data/typt/
templateFilePath: /mnt/data/temporary/
2024-11-05 22:36:04 +08:00
#一局三公司安全生产 、数字三局
# localFilePath: /mnt/aqm/
# downloadFileHost: https://filedown.makalu.cc/
# downloadWritePath: /mnt/typt/
# templateFilePath: /mnt/temporary/
2024-10-20 17:56:31 +08:00
#本地
# localFilePath: D:/aqm/
# downloadFileHost: D:/mnt/typt/
# downloadWritePath: D:/mnt/typt/
# templateFilePath: D:/mnt/temporary/
## 定时任务基础配置
scheduling:
enabled: true #定时任务开关
# enabled: false #定时任务开关