# 项目相关配置
ruoyi:
  # 名称
  name: hip
  # 版本
  version: 4.1.0
  # 版权年份
  copyrightYear: 2022
  # 文件路径
  profile: /u01/app/profile/
  # 获取ip地址开关
  addressEnabled: true

# 开发环境配置
server:
  # 服务器的HTTP端口,默认为80
  port: 81
  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: warn
    org.springframework: warn
    com.hanyun.hip.mrqc.service: warn
    com.hanyun.hip.mrqc.service.mapper: debug
    com.hanyun.hip.mrqc.rule.mapper: warn
    com.hanyun.hip.mrqc.sdis.mapper: warn
    com.hanyun.hip.mrqc.cdss.mapper: warn
    com.hanyun.hip.mrqc.rule: warn
    com.hanyun.hip.mrqc.drgs: warn

# 用户配置
user:
  password:
    # 密码错误{maxRetryCount}次锁定10分钟
    maxRetryCount: 10

# 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:
    include: druid,xy2yy,drg
  # 文件上传
  servlet:
    multipart:
      # 单个文件大小
      max-file-size:  10MB
      # 设置总上传的文件大小
      max-request-size:  20MB
  # 服务模块
  devtools:
    restart:
      # 热部署开关
      enabled: true
      additional-paths: src/main/java

# MyBatis
mybatis:
  # 搜索指定包别名
  typeAliasesPackage: com.ruoyi.system.domain,com.ruoyi.quartz.domain,com.ruoyi.generator.domain,com.hanyun.hip.kgms.service.tenant.domain,com.hanyun.kgms.maker.domain,com.hanyun.kgms.doc.domain,com.hanyun.hip.kgms.service.doc.domain,com.hanyun.kgms.term.domain,com.hanyun.kgms.term.domain,com.hanyun.hip.mrqc.drgs.domain,com.hanyun.hip.mrqc.service.analysis.domain,com.hanyun.hip.mrqc.sdis.domain,com.hanyun.hip.knowledge,com.ruoyi.activiti.domain,com.hanyun.hip.mrqc.cdss.domain,com.hanyun.hip.mrqc.drgs.entity
  # 配置mapper的扫描,找到所有的mapper.xml映射文件
  mapperLocations: classpath*:mapper/**/*Mapper.xml
  # 加载全局的配置文件
  configLocation: classpath:mybatis/mybatis-config.xml
  type-handlers-package: com.hanyun.hip.mrqc.service.handler

# PageHelper分页插件
pagehelper:
  helperDialect: mysql
  reasonable: true
  supportMethodsArguments: true
  params: count=countSql

# Shiro
shiro:
  user:
    # 登录地址
    loginUrl: /mrqc/login
    # 权限认证失败地址
    unauthorizedUrl: /unauth
    # 首页地址
    indexUrl: /mrqc/index
    # 验证码开关
    captchaEnabled: false
    # 验证码类型 math 数组计算 char 字符
    captchaType: math
    # 权限白名单
    whitelist: /**/css/**,/**/js/**,/**/images/**,/mrqc/main,/mrqc/qualityScore,/mrqc/index/selectStdSourceStat,/mrqc/index/statTable,/mrqc/index/selectRuleTypeStat,/mrqc/index/ruleMonth,/mrqc/index/getEmrLvScoreRules,/mrqc/index/selectAreaAndDepartment,/mrqc/standard/selectAllDeparment,/mrqc/index/selectRecordScoreAvg,/mrqc/standard/**,/mrqc/standard/ksStat,/mrqc/standard/ysStat,/mrqc/hospitalTypeStat/**,/mrqc/mrqcQualityReport,/mrqc/qualityReport/**,/mrqc/findQualityDefectAll,/mrqc/countIndex,/mrqc/homeScreen/selectScreenCache/**,/mrqc/emrrecord/todetail/**,/mrqc/emrrecord/submitaudit/**,/mrqc/emrrecord/homeTracing/**,/mrqc/emrconfig/listemrmodel/**,/mrqc/emrrecord/initdetaildata/**,/mrqc/emrrecord/initdetailmenu/**,/mrqc/emrrecord/manualintervenqc/**,/mrqc/emrrecord/initdetailCount/**,/mrqc/emrrecord/toaddnewdefect/**,/api/refreshEmrScore/**,/api/refreshByRecord/**,/mrqc/emrrecord/toemrmodule/**,/mrqc/emrrecord/selectUrlByEmrIdAndRecordId/**,/mrqc/tempCache/selectScreenCache,/api/**,/sso/login**,/v2/api-docs/**,/ureport/**,/mrqc/notice/list,/kqyyApi/**
  cookie:
    # 设置Cookie的域名 默认空,即当前访问的域名
    domain:
    # 设置cookie的有效访问路径
    path: /
    # 设置HttpOnly属性
    httpOnly: true
    # 设置Cookie的过期时间,天为单位
    maxAge: 30
  session:
    # Session超时时间(默认30分钟)
    expireTime: 300000
    # 同步session到数据库的周期(默认1分钟)
    dbSyncPeriod: 1
    # 相隔多久检查一次session的有效性,默认就是10分钟
    validationInterval: 10
  conf:
    sysanon: /kgms/maker/index
#不拦截的路径
# 防止XSS攻击
xss:
  # 过滤开关
  enabled: true
  # 排除链接(多个用逗号分隔)
  excludes: /system/notice/*
  # 匹配链接
  urlPatterns: /system/*,/monitor/*,/tool/*

img:  #//如果是Windows情况下,格式是 D:\\blog\\image   linx 格式"/home/blog/image";
  location: /home/blog/image

mrqc:
  # demo 模式病历列表查询最新有数据的月份
  query: dev

#================License相关配置===============#
license:
  #证书名称
  subject: hip-mrqc
  #公钥别名
  publicAlias: publicCert
  #公钥库所在的位置
  publicKeysStorePath: /publicCerts.store
  #公钥库访问密码
  storePass: HanYun@2020
  #证书所在的位置
  licensePath: /license.lic
#================License相关配置===============#

#================消息中心相关配置===============# 192.168.1.13 10.16.2.173
spring.rabbitmq.host: 10.16.2.173
spring.rabbitmq.port: 5672
spring.rabbitmq.username: root
spring.rabbitmq.password: root
spring.rabbitmq.virtual-host: /
hanyun.message.enable: false
#================消息中心相关配置===============#

sso:
  login.service: default
nlp:
  cache.enable: false

# ES 插件配置
easy-es:
  enable: false