Initial commit
This commit is contained in:
239
back/src/main/resources/application.yml
Normal file
239
back/src/main/resources/application.yml
Normal file
@@ -0,0 +1,239 @@
|
||||
# 项目相关配置
|
||||
ruoyi:
|
||||
# 名称
|
||||
name: RuoYi
|
||||
# 版本
|
||||
version: 3.8.8
|
||||
# 版权年份
|
||||
copyrightYear: 2024
|
||||
# 当前激活的 Spring Profile(如 prod / dev),与 spring.profiles.active 联动
|
||||
activeProfile: xtdev
|
||||
# 获取ip地址开关
|
||||
addressEnabled: false
|
||||
# 验证码类型 math 数字计算 char 字符验证
|
||||
captchaType: math
|
||||
|
||||
# 开发环境配置
|
||||
server:
|
||||
# 服务器的HTTP端口,默认为8080
|
||||
port: 8082
|
||||
servlet:
|
||||
# 应用的访问路径
|
||||
context-path: /
|
||||
tomcat:
|
||||
# tomcat的URI编码
|
||||
uri-encoding: UTF-8
|
||||
# 连接数满后的排队数,默认为100
|
||||
accept-count: 1000
|
||||
# 连接超时时间(毫秒),设置为30分钟,支持大文件下载
|
||||
connection-timeout: 1800000
|
||||
threads:
|
||||
# tomcat最大线程数,默认为200
|
||||
max: 800
|
||||
# Tomcat启动初始化的线程数,默认值10
|
||||
min-spare: 100
|
||||
|
||||
# 日志配置
|
||||
logging:
|
||||
level:
|
||||
com.ruoyi: debug
|
||||
org.springframework: warn
|
||||
|
||||
# 用户配置
|
||||
user:
|
||||
password:
|
||||
# 密码最大错误次数
|
||||
maxRetryCount: 5
|
||||
# 密码锁定时间(默认10分钟)
|
||||
lockTime: 10
|
||||
email:
|
||||
# 邮箱登录失败次数限制
|
||||
maxRetryCount: 5
|
||||
# 邮箱登录锁定时间(默认30分钟)
|
||||
lockTime: 30
|
||||
# 邮箱验证码重发间隔时间(分钟)
|
||||
resendInterval: 1
|
||||
# 是否记住邮箱登录状态
|
||||
rememberLogin: true
|
||||
# IP白名单开关
|
||||
ipWhitelistEnabled: false
|
||||
# 地域限制开关
|
||||
regionLimitEnabled: false
|
||||
|
||||
# Spring配置
|
||||
spring:
|
||||
# 资源信息
|
||||
messages:
|
||||
# 国际化资源文件路径
|
||||
basename: i18n/messages
|
||||
profiles:
|
||||
active: ${ruoyi.activeProfile},jypay-${ruoyi.activeProfile}
|
||||
servlet:
|
||||
multipart:
|
||||
# 单个文件大小
|
||||
max-file-size: 10MB
|
||||
# 设置总上传的文件大小
|
||||
max-request-size: 20MB
|
||||
# 服务模块
|
||||
devtools:
|
||||
restart:
|
||||
# 热部署开关
|
||||
enabled: true
|
||||
# redis 配置
|
||||
redis:
|
||||
# 地址
|
||||
host: localhost
|
||||
# 端口,默认为6379
|
||||
port: 6379
|
||||
# 数据库索引
|
||||
database: 1
|
||||
# 密码
|
||||
# password:
|
||||
# 连接超时时间
|
||||
timeout: 10s
|
||||
lettuce:
|
||||
pool:
|
||||
# 连接池中的最小空闲连接
|
||||
min-idle: 0
|
||||
# 连接池中的最大空闲连接
|
||||
max-idle: 8
|
||||
# 连接池的最大数据库连接数
|
||||
max-active: 8
|
||||
# #连接池最大阻塞等待时间(使用负值表示没有限制)
|
||||
max-wait: -1ms
|
||||
# 邮件配置
|
||||
mail:
|
||||
# SMTP服务器地址
|
||||
host: smtp.feishu.cn
|
||||
# SMTP服务器端口
|
||||
port: 465
|
||||
# 发件人邮箱地址
|
||||
username: no-reply@jueyuantech.com
|
||||
# 发件人邮箱密码或授权码
|
||||
password: 3FErAqOlgQSrpRFY
|
||||
# 邮件编码
|
||||
default-encoding: UTF-8
|
||||
# SMTP服务器配置
|
||||
properties:
|
||||
mail:
|
||||
smtp:
|
||||
# 启用认证
|
||||
auth: true
|
||||
# 启用STARTTLS
|
||||
starttls:
|
||||
enable: true
|
||||
# 启用SSL
|
||||
ssl:
|
||||
enable: true
|
||||
|
||||
# 物流查询(阿里云快递API)
|
||||
express:
|
||||
ali:
|
||||
# API网关配置
|
||||
host: https://kzexpress.market.alicloudapi.com
|
||||
path: /api-mall/api/express/query
|
||||
# 控制台申请的 AppKey / AppSecret(目前备用)
|
||||
app-key: 204989623
|
||||
app-secret: rbZGi37v9CGmauhOxCIHtTz9NIKSgiPi
|
||||
# APPCode:用于请求头 Authorization: APPCODE xxx
|
||||
app-code: 41efcc1179454efab33252f32690e471
|
||||
|
||||
# token配置
|
||||
token:
|
||||
# 令牌自定义标识
|
||||
header: Authorization
|
||||
# 令牌密钥
|
||||
secret: abcdefghijklmnopqrstuvwxyz
|
||||
# 令牌有效期(默认30分钟) 60 * 24 * 7
|
||||
expireTime: 10080
|
||||
|
||||
# MyBatis Plus配置
|
||||
mybatis-plus:
|
||||
# 搜索指定包别名
|
||||
typeAliasesPackage: com.ruoyi.**.domain
|
||||
# 配置mapper的扫描,找到所有的mapper.xml映射文件
|
||||
mapperLocations: classpath*:mapper/**/*Mapper.xml
|
||||
# 加载全局的配置文件
|
||||
configLocation: classpath:mybatis/mybatis-config.xml
|
||||
global-config:
|
||||
db-config:
|
||||
id-type: assign_id # 全局配置
|
||||
|
||||
# PageHelper分页插件
|
||||
pagehelper:
|
||||
helperDialect: mysql
|
||||
supportMethodsArguments: true
|
||||
params: count=countSql
|
||||
|
||||
# Swagger配置
|
||||
swagger:
|
||||
# 是否开启swagger
|
||||
enabled: true
|
||||
# 请求前缀
|
||||
pathMapping: /dev-api
|
||||
|
||||
# 防止XSS攻击
|
||||
xss:
|
||||
# 过滤开关
|
||||
enabled: true
|
||||
# 排除链接(多个用逗号分隔)
|
||||
excludes: /system/notice
|
||||
# 匹配链接
|
||||
urlPatterns: /system/*,/monitor/*,/tool/*
|
||||
|
||||
# 邮箱验证码配置
|
||||
email:
|
||||
captcha:
|
||||
# 验证码长度
|
||||
length: 6
|
||||
# 验证码有效期(分钟)
|
||||
expireTime: 5
|
||||
# 验证码类型(数字:number,字母:letter,混合:mixed)
|
||||
type: number
|
||||
file:
|
||||
#配置用
|
||||
config-path: /file/**
|
||||
#保存用
|
||||
save-path: /data/files/
|
||||
#访问用
|
||||
access-path: /file/
|
||||
wechat:
|
||||
appid: wx73a7ccca0d2ca397
|
||||
secret: 6883cdfbdae7d73b0334de65e6dc58f0
|
||||
|
||||
# 业务短信(template 为短信平台模板 Code,变量由代码传入)
|
||||
# assign-order 模板:您有新分配的制片单(订单号${code}),请立即登录觉远配片系统查看并处理。
|
||||
# ship-order 模板:您的配片单(订单号${code})已发出,由${expressCompany}承运,单号${expressNo},可在官网查询物流进度。
|
||||
sms:
|
||||
sign-name: 金华觉远创智科技
|
||||
assign-order:
|
||||
enabled: true
|
||||
template: SMS_507960130
|
||||
ship-order:
|
||||
enabled: true
|
||||
template: SMS_508045133
|
||||
|
||||
# 实名认证配置(AppCode 建议放到环境配置或 Nacos/密钥管理中)
|
||||
realname-auth:
|
||||
# 个人实名认证 AppCode(https://eid.shumaidata.com/eid/checkbody)
|
||||
personalAppCode: "41efcc1179454efab33252f32690e471"
|
||||
# 个人实名认证 URL
|
||||
personalUrl: "https://eid.shumaidata.com/eid/checkbody"
|
||||
# 企业实名认证 AppCode(https://qy3ys.market.alicloudapi.com/qysys/dmp/api/jinrun.company.company.elements3)
|
||||
companyAppCode: "41efcc1179454efab33252f32690e471"
|
||||
# 企业实名认证 URL
|
||||
companyUrl: "https://qy3ys.market.alicloudapi.com/qysys/dmp/api/jinrun.company.company.elements3"
|
||||
|
||||
# 发票 OCR:图片 + 扫描件 PDF(无文字层时渲染后识别);需安装 Tesseract chi_sim
|
||||
invoice:
|
||||
ocr:
|
||||
enabled: false
|
||||
# data-path: C:/Program Files/Tesseract-OCR
|
||||
|
||||
# 国密加解密配置(用于实名认证敏感字段落库加密)
|
||||
gm:
|
||||
crypto:
|
||||
# SM4 密钥(建议 16 字节;生产环境请使用密钥管理/环境变量,不要明文提交)
|
||||
sm4Key: "A1B2C3D4E5F60718293A4B5C6D7E8F90"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user