xinelu-api/xinelu-admin/src/main/resources/application.yml
2024-11-01 14:16:39 +08:00

400 lines
14 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 项目相关配置
xinelu:
# 名称
name: xinelu-api
# 版本GlobalExceptionHandler
version: 0.0.1
# 版权年份
copyrightYear: 2023
# 实例演示开关
demoEnabled: true
# 文件路径 示例( Windows配置D:/xinelu-file/uploadPathLinux配置 /home/xinelu-file/uploadPath
profile: D:/xinelu-file/uploadPath
# 获取ip地址开关
addressEnabled: false
# 验证码类型 math 数组计算 char 字符验证
captchaType: math
# 全易通小程序前端图片存放路径相对路径Windows和Linux下通用
nurser-applet-picture: /nurseApplet/picture
# 护理站图片上传
nurser-station-picture-url: /nurseStation
# 护理站简介图片上传
nurser-stationIntroduce-picture-url: /nurseStation2
# 护理站项目图片上传
nurser-stationItem-picture-url: /nurseStationItem
# 商品分类图片地址
goods-category-picture: /goodsCategoryPicture
# 商品图片路径图片上传
goods-picture-url: /goodsPictureUrl
# 商品属性图片地址图片上传
attribute-piture-url: /attributePitureUrl
# 获取管理端富文本的上传路径
rich-text-picture-url: /richTextPictureUrl
# 修改会员App用户头像上传
head-picture-url: /headPictureUrl
# 护理员App人员头像的上传路径图片上传路径
nurse-station-app-person-url: /avatar
# 任务完成上传确认信息
appointment-order-details-url: /appointmentOrderDetailsUrl
# 评价信息图片上传路径
evaluate-picture-url: /evaluatePictureUrl
# 护理项目分类图标存放地址
nurseitem-classify-url: /nurseItemClassifyUrl
# 海报图片存放路径
poster-picture-url: /posterPictureUrl
# 海报视频存放路径
poster-video-url: /posterVideoUrl
# 商城店铺默认名称
yiLuYouPinStoreName: 医路优品
# 护理员App文件下载路径
app-file-path: http://app.xinelu.com/app/泉医到家护理员App.apk
# 护理员App服务器存放路径
app-file-name: /appFileName
# 护理机构图片存放路径
nurse-station-classify-url: /nurseStationClassifyUrl
# 资讯分类图片地址
lead-thumbnail-url: /leadThumbnailUrl
# 在线客服群二维码存放路径
group-qr-code-url: /groupQrCodeUrl
# 科室人员证书图片存放路径
certificate-url: /certificateUrl
# 小程序好友邀请二维码存放地址
personal-wechat-code-url: /personalWechatCodeUrl
# 健康咨询科室人员头像地址
person-picture-url: /personPictureUrl
# 护理人员证书图片存放路径
person-certificate-url: /personCertificateUrl
# 审核护理人员证书图片存放路径
person-certificate-check-url: /personCertificateCheckUrl
# 护理站二维码存放地址
station-wechat-code-url: /stationWechatCodeUrl
#问诊文件地址
consultation-file-url: /consultationFileUrl
#聊天图片地址
chat-record-file-url: /chatRecordFileUrl
#筛查预约条码图片地址
apply-barcode-piture-url: /applyBarcodePitureUrl
#筛查预约条码图片地址
register-barcode-piture-url: /registerBarcodePictureUrl
#血小板筛查图片地址
platelet-piture-url: /plateletPitureUrl
#眼底病变筛查左眼图片地址
left-eye-piture-url: /leftEyePitureUrl
#眼底病变筛查右眼图片地址
right-eye-piture-url: /rightEyePitureUrl
#居民签约申请签字图片地址
resident-signature-url: /residentSignatureUrl
#阿尔兹海默症结果文件地址
alzheimer-file-url: /alzheimerFileUrl
#培训分类图片路径
training-category-picture-url: /trainingCategoryPictureUrl
#培训项目logo图片路径
training-item-cover-url: /trainingItemCoverUrl
#培训项目海报图片路径
training-item-poster-url: /trainingItemPosterUrl
#培训项目内容图片路径
training-item-content-url: /trainingItemContentUrl
#培训项目章节视频存放地址
item_directory_url: /itemDirectoryUrl
# 开发环境配置
server:
# 服务器的HTTP端口默认为8098
port: 8098
servlet:
# 应用的访问路径
context-path: /
tomcat:
# tomcat的URI编码
uri-encoding: UTF-8
# 连接数满后的排队数默认为100
accept-count: 1000
threads:
# tomcat最大线程数默认为200
max: 800
# Tomcat启动初始化的线程数默认值10
min-spare: 100
# 日志配置
logging:
level:
# 生产环境为info开发为debug
com.xinelu: debug
org.springframework: warn
# Spring配置
spring:
# 资源信息
messages:
# 国际化资源文件路径
basename: i18n/messages
profiles:
active: dev
# 文件上传
servlet:
multipart:
# 单个文件大小
max-file-size: 200MB
# 设置总上传的文件大小
max-request-size: 500MB
# 服务模块
devtools:
restart:
# 热部署开关
enabled: true
# redis 配置
redis:
# 地址
host: localhost
# 端口默认为6379
port: 6379
# 数据库索引
database: 11
# 密码
password: xinelu@6990
# 连接超时时间
timeout: 10s
lettuce:
pool:
# 连接池中的最小空闲连接
min-idle: 0
# 连接池中的最大空闲连接
max-idle: 8
# 连接池的最大数据库连接数
max-active: 8
# #连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: -1ms
# token配置
token:
# 令牌自定义标识
header: Authorization
# 令牌密钥
secret: eaGoBFyEl31MGE3u1mt4teZFbk
# 令牌有效期默认30分钟
expireTime: 1440
#请求拦截白名单
ant-matchers: /nurseApplet/**,/nurseApp/**,/applet/**,webSocket/**,/message/**,/fd/**
# MyBatis-Plus配置
mybatis-plus:
# 实体扫描多个package用逗号或者分号分隔
typeAliasesPackage: com.xinelu.**.domain
# 对应的 XML 文件位置
mapperLocations: classpath*:mapper/**/*Mapper.xml
# 启动时是否检查 MyBatis XML 文件的存在,默认不检查
checkConfigLocation: false
# 通过该属性可指定 MyBatis 的执行器MyBatis 的执行器总共有三种:
executorType: SIMPLE
# 指定外部化 MyBatis Properties 配置,通过该配置可以抽离配置,实现不同环境的配置部署
configurationProperties: null
configuration:
# 自动驼峰命名规则camel case映射
mapUnderscoreToCamelCase: true
# 默认枚举处理类,如果配置了该属性,枚举将统一使用指定处理器进行处理
defaultEnumTypeHandler: org.apache.ibatis.type.EnumTypeHandler
# 当设置为 true 的时候,懒加载的对象可能被任何懒属性全部加载,否则,每个属性都按需加载。需要和 lazyLoadingEnabled 一起使用。
aggressiveLazyLoading: true
# MyBatis 自动映射策略
autoMappingBehavior: PARTIAL
# MyBatis 自动映射时未知列或未知属性处理策
autoMappingUnknownColumnBehavior: NONE
# Mybatis一级缓存默认为 SESSION
localCacheScope: SESSION
# 开启Mybatis二级缓存默认为 true
cacheEnabled: true
global-config:
# 是否打印 Logo banner
banner: true
# 是否初始化 SqlRunner
enableSqlRunner: false
dbConfig:
# 主键类型 AUTO 数据库ID自增
idType: AUTO
# 表名前缀
tablePrefix: null
# 字段 format,例: %s,(对主键无效)
columnFormat: null
# 表名是否使用驼峰转下划线命名,只对表名生效
tableUnderline: true
# 大写命名,对表名和字段名均生效
capitalMode: false
# 全局的entity的逻辑删除字段属性名
logicDeleteField: null
# 逻辑已删除值
logicDeleteValue: 1
# 逻辑未删除值
logicNotDeleteValue: 0
# 字段验证策略之 insert,在 insert 的时候的字段验证策略
insertStrategy: NOT_NULL
# 字段验证策略之 update,在 update 的时候的字段验证策略
updateStrategy: NOT_NULL
# 字段验证策略之 select,在 select 的时候的字段验证策略既 wrapper 根据内部 entity 生成的 where 条件
selectStrategy: NOT_NULL
# PageHelper分页插件
pagehelper:
helperDialect: mysql
reasonable: true
supportMethodsArguments: true
params: count=countSql
# Swagger配置
swagger:
# 是否开启swagger
enabled: true
# 请求前缀
pathMapping:
swagger-ui:
base-url: com.xinelu
# 防止XSS攻击
xss:
# 过滤开关
enabled: true
# 排除链接(多个用逗号分隔)
excludes: /system/notice,/system/station/add,/system/station/edit,/system/stationItem/add,/system/stationItem/edit,/system/operateGoodInfo/add,/system/operateGoodInfo/edit,/system/goodsInfo/add,/system/goodsInfo/edit,/system/hospital/add,/system/hospital/edit,/system/informationInfo/add,/system/informationInfo/edit,/system/trainingItem/edit,/system/trainingItem/add
# 匹配链接
urlPatterns: /system/*,/monitor/*,/tool/*
# 家医配置德州正式地址http://10.2.130.163:8003/fd/mp东营正式地址http://218.58.213.15:8009/fd/mp
fd:
dz: http://8.131.93.145:54007/fd/mp
dy: http://8.131.93.145:54008/fd/mp
# 签约附近的机构多少公里内 <=0时不限制
distance: 0
# 三高后端服务地址东营三高正式地址http://218.58.213.15:8002
th:
url: http://127.0.0.1:8080
# 专病后端服务地址,德州正式外网地址https://fdmp.xinelu.cn/dzsd
sd:
dzurl: http://127.0.0.1:8080
# 家医小程序服务地址
mp:
url: http://8.131.93.145:54010/fm
# 腾讯云音视频
trtc:
sdkappid: 1600006944
sdksecretkey: 6ddbc3e7e4aa128b52898df27a35f8f3d5acdca6f34ffa17b87ebc33e83314f1
secretid: AKIDYxAAwVrPveKvQuO2zwojOxRpCTflkz9E
secretkey: 540sfPH5obKxVxwW4Xt8KTfmS4b2Nfu4
# 微信小程序参数配置信息
applet-chat-config:
# 微信小程序idwxdec3416aa3d60cab
applet-id: wxccb16a452ab5e4b4
# 微信小程序密钥f58e19be0380c2ebc6e9e9684c0dacce
secret: 72e11a5757e578c47ee935c00f49e8bf
# 微信小程序返回国家语言
lang: zh_CN
# 微信小程序授权类型
grant-type: authorization_code
# 微信小程序事件回调令牌
token: uI1NGHesp7ylIYVYQvp0TlcDmUTKCHj2
# 微信小程序事件回调消息加密密钥
encoding-aes-key: 5rbyhMBpdnxTEVT54zeHMNcXi3ccilQZ209QqGi89EW
# 医养微信小程序参数配置信息
applet-yiyang-config:
# 医养微信小程序id
applet-id: wxccb16a452ab5e4b4
# 医养微信小程序密钥
secret: 72e11a5757e578c47ee935c00f49e8bf
# 医养微信小程序返回国家语言
lang: zh_CN
# 医养微信小程序授权类型
grant-type: authorization_code
# 医养微信小程序事件回调令牌
token: uI1NGHesp7ylIYVYQvp0TlcDmUTKCHj2
# 医养微信小程序事件回调消息加密密钥
encoding-aes-key: 5rbyhMBpdnxTEVT54zeHMNcXi3ccilQZ209QqGi89EW
# 小程序首页路径
applet-page-config:
# 首页跳转路径
page-url: pages/startup/startup
# 个人中心-优惠券页面跳转路径
coupon-page-url: pagesB/coupon/coupon
# 商品订单页面跳转路径
goods-order-page-url: pagesB/CommodityOrder/CommodityOrder
# 预约订单页面跳转路径
appoint-order-page-url: pagesB/ExpertlookOrder/ExpertlookOrder
# 积分页面跳转路径
integral-page-url: pagesB/integral/integral
# 护理结构详情页面跳转路径
nursestation-details-page-url: pagesB/nursestation/nursestation
# 筛查结果跳转路径
screening-record-page-url: pagesB/screeningRecord/screeningRecord
# 新医路微信商户号配置参数
xyl-we-chat-config:
xyl-mch-id: 1633348407
xyl-mch-serial-no: 7C6A18FC8E1F0445901B1BE1C4DD1ACE284C3D79
xyl-private-key-path: xinyilu_apiclient_key.pem
xyl-payment-key: Xyl699003981qazVFR4xsw23edcASDFG
# 正式回调域名https://hekou-nurse-api.xinyilu.cn
xyl-wechat-notify-url: https://1608.xinelu.cn
# 微信支付接口地址包含小程序和App支付接口地址
we-chat-payment-url-config:
jsapi-palce-order-url: https://api.mch.weixin.qq.com/v3/pay/transactions/jsapi
query-order-no-url: https://api.mch.weixin.qq.com/v3/pay/transactions/id/%s
query-mch-id-url: https://api.mch.weixin.qq.com/v3/pay/transactions/out-trade-no/%s
close-order-url: https://api.mch.weixin.qq.com/v3/pay/transactions/out-trade-no/%s/close
refund-apply-url: https://api.mch.weixin.qq.com/v3/refund/domestic/refunds
refund-query-order-url: https://api.mch.weixin.qq.com/v3/refund/domestic/refunds/%s
trade-apply-bill-url: https://api.mch.weixin.qq.com/v3/bill/tradebill
capital-apply-bill-url: https://api.mch.weixin.qq.com/v3/bill/fundflowbill
app-place-order-url: https://api.mch.weixin.qq.com/v3/pay/transactions/app
# 快递鸟物流查询参数配置
logistics-config:
e-business-id: 1781371
api-key: 998b273d-c926-4659-a9d5-ae0613782d70
express-bird-url: https://api.kdniao.com/Ebusiness/EbusinessOrderHandle.aspx
# 德州市鲁通码接口配置
dzsCode:
appid: lhw8570wl9zojyou6zv6
appSecret: 74cb380c19b5448da4d7a1ef505089c4
# 接口服务
url: https://dsjj.dezhou.gov.cn/dzjmm/code
# 多码互认
mutualUrl: https://dsjj.dezhou.gov.cn/dzjmm/mutual
# 传输数据是否要加密(0:否1:是)
isSecret: 0
# 是否校验完整性(0:否1:是) 当为1时sign的生成入参包括message
isWhole: 0
# 机构编码
institutionCode: 1137140000440159XP
# 城市编码 德州市
useCityCode: 371400
# 业务场景
businessStepCode: 302
# 医护助手微信小程序参数配置信息
nurse-applet-chat-config:
# 微信小程序idwxa4f2b43d2ccb9908
applet-id: wxa4f2b43d2ccb9908
# 微信小程序密钥,
secret: faeba9fc043cfdcb088f43be1747e054
# 微信小程序返回国家语言
lang: zh_CN
# 微信小程序授权类型
grant-type: authorization_code
# 请求加密配置
crypto:
# 是否开启加密
open: true
# 编码方式F
charset: UTF-8
# 加密密钥
key: 60afL1G1b39c5Z27
ignores: