You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

209 lines
5.8 KiB

# 项目相关配置
ruoyi:
# 名称
name: 中大信通
# 版本
version: 4.1.0
# 版权年份
copyrightYear: 2019
# 实例演示开关
demoEnabled: true
# 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
profile: C:/ruoyi/uploadPath
# profile: /Users/kylin_stone/Workspaces/uploads
# profile: /home/zfjd/uploadPath
# 获取ip地址开关
addressEnabled: true
# 开发环境配置
server:
# 服务器的HTTP端口,默认为80
port: 85
servlet:
# 应用的访问路径
context-path: /
tomcat:
# tomcat的URI编码
uri-encoding: UTF-8
# tomcat最大线程数,默认为200
max-threads: 800
# Tomcat启动初始化的线程数,默认值25
min-spare-threads: 30
# tomcat 设置tamcat header的长度
max-http-header-size: 4048576
# 设定Httppost数据大小
max-http-post-size: 102400000
# 日志配置
logging:
level:
com.zdxt: 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:
# 启用Oracle
active:
# 启用oracle
# - druidOracle
# 启用cas单点登录环境
# - cas
# 启用mysql版本
- druid
#分布式任务中心
# - job
# - oss
# - rule
# - etl
# - report
# 文件上传`
servlet:
multipart:
# 单个文件大小
max-file-size: 1024MB
# 设置总上传的文件大小
max-request-size: 1024MB
# 服务模块
devtools:
restart:
# 热部署开关
enabled: true
# redis配置
redis:
database: 0
# host: localhost
# port: 6379
# password: zfjd@123
host: 43.136.51.161
port: 6379
password: meiyoumima
timeout: 6000ms # 连接超时时长(毫秒)
lettuce:
pool:
max-active: 10 # 连接池最大连接数(使用负值表示没有限制)
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
max-idle: 3 # 连接池中的最大空闲连接
min-idle: 2 # 连接池中的最小空闲连接
# Shiro
shiro:
user:
# 登录地址
loginUrl: /login
# 权限认证失败地址
unauthorizedUrl: /unauth
# 首页地址
indexUrl: /index
# 验证码开关
captchaEnabled: true
# 验证码类型 math 数组计算 char 字符
captchaType: math
cookie:
# 设置Cookie的域名 默认空,即当前访问的域名
domain:
# 设置cookie的有效访问路径
path: /
# 设置HttpOnly属性
httpOnly: true
# 设置Cookie的过期时间,天为单位
maxAge: 30
# 设置密钥,务必保持唯一性(生成方式,直接拷贝到main运行即可)KeyGenerator keygen = KeyGenerator.getInstance("AES"); SecretKey deskey = keygen.generateKey(); System.out.println(Base64.encodeToString(deskey.getEncoded()));
cipherKey: zSyK5Kp6PZAAjlT+eeNMlg==
session:
# Session超时时间,-1代表永不过期(默认30分钟)
expireTime: 30
# 同步session到数据库的周期(默认1分钟)
dbSyncPeriod: 1
# 相隔多久检查一次session的有效性,默认就是10分钟
validationInterval: 10
# 同一个用户最大会话数,比如2的意思是同一个账号允许最多同时两个人登录(默认-1不限制)
maxSession: -1
# 踢出之前登录的/之后登录的用户,默认踢出之前登录的用户
kickoutAfter: false
# cas和shiro整合相关
# 在访问cas服务器登录之后,会返回一个ticket。由该地址接收
casFilterUrlPattern: /shiro-cas
# cas服务前缀
# casServerUrlPrefix: http://127.0.0.1:8443/cas
casServerUrlPrefix: http://127.0.0.1:8080/cas1
# casServerUrlPrefix: http://web.szsf:8088/cas
# shiro服务前缀
shiroServerUrlPrefix: http://127.0.0.1:${server.port}${server.servlet.context-path}
# shiroServerUrlPrefix: http://10.40.33.166:${server.port}${server.servlet.context-path}
# 登录地址
casLoginUrl: ${shiro.casServerUrlPrefix}/login?service=${shiro.shiroServerUrlPrefix}${shiro.casFilterUrlPattern}
# casLoginUrl: ${shiro.casServerUrlPrefix}/login?service=${shiro.shiroServerUrlPrefix}
# 登出地址
# casLogoutUrl: ${shiro.casServerUrlPrefix}/logout?service=${shiro.shiroServerUrlPrefix}${shiro.casFilterUrlPattern}
casLogoutUrl: ${shiro.casServerUrlPrefix}/logout?service=${shiro.shiroServerUrlPrefix}
# 防止XSS攻击
xss:
# 过滤开关
enabled: true
# 排除链接(多个用逗号分隔)
excludes: /system/notice/*
# 匹配链接
urlPatterns: /system/*,/monitor/*,/tool/*
# 代码生成
gen:
# 作者
author: ruoyi
# 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool
packageName: com.zdxt.auth.project.system
# 自动去除表前缀,默认是true
autoRemovePre: true
# 表前缀(生成类名不会包含表前缀,多个用逗号分隔)
tablePrefix: sys_
xxl:
job:
status: false #启用状态 false 关闭
accessToken: default_token
admin:
addresses: http://127.0.0.1:8080/xxl-job-admin #注册地址
executor:
address: ''
appname: zdxt #系统标识名称
ip: ''
logpath: /data/applogs/xxl-job/jobhandler
logretentiondays: -1
port: 9999
excel:
export: true
import: true
# 粤政易对接令牌信息
yzy:
yzyUrl: http://50.9.11.153
corpid: 123456
corpsecret: 88761
paasid: 123
qr_code_url: C:\ruoyi\uploadPath\zfjd_logo.png