# 项目相关配置
ruoyi:
  # 名称
  name: RuoYi
  # 版本
  version: 3.8.9
  # 版权年份
  copyrightYear: 2025
  # 文件路径 示例（ Windows配置D:/ruoyi/uploadPath，Linux配置 /home/ruoyi/uploadPath）
  profile: D:/ruoyi/uploadPath2
  # 获取ip地址开关
  addressEnabled: false
  # 验证码类型 math 数字计算 char 字符验证
  captchaType: math
#
dromara:
  x-file-storage: #文件存储配置
    default-platform: aliyun-oss-1 #默认使用的存储平台
    thumbnail-suffix: ".min.jpg" #缩略图后缀，例如【.min.jpg】【.png】
    #对应平台的配置写在这里，注意缩进要对齐
    minio:
      - platform: minio-1 # 存储平台标识
        enable-storage: false  # 启用存储
        access-key: NQpPX8xgjXp3IZTHhdKd
        secret-key: VtLQcV3DJsEwq0eBUPg2aM87xviKEjfKLSrrvCN3
        end-point: http://1.95.212.35:9000
        bucket-name: leromro
        domain: https://zybooks.tech/leromro/ # 访问域名，注意“/”结尾，例如：http://minio.abc.com/abc/
        base-path: test/ # 基础路径
    aliyun-oss:
      - platform: aliyun-oss-1 # 存储平台标识
        enable-storage: true  # 启用存储
        access-key: LTAI5t7Xyw23riTKPgy99FNP
        secret-key: vPXlxXmL5QVE0Iop4NCKvZQvGCZYgP
        end-point: oss-cn-hangzhou.aliyuncs.com
        bucket-name: leromro
        domain: https://leromro.oss-cn-hangzhou.aliyuncs.com/
        base-path: test/ # 基础路径



# 开发环境配置
server:
  # 服务器的HTTP端口，默认为8080
  port: 9527
  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:
    com.leromro: debug
    org.springframework: warn

# 用户配置
user:
  password:
    # 密码最大错误次数
    maxRetryCount: 5
    # 密码锁定时间（默认10分钟）
    lockTime: 10

# Spring配置
spring:
  # 资源信息
  messages:
    # 国际化资源文件路径
    basename: i18n/messages
  profiles:
    active: druid
  # 文件上传
  servlet:
    multipart:
      # 单个文件大小
      max-file-size: 10MB
      # 设置总上传的文件大小
      max-request-size: 20MB
  # 服务模块
  devtools:
    restart:
      # 热部署开关
      enabled: false
  # redis 配置
  redis:
    # 地址
    host: localhost
    # 端口，默认为6379
    port: 6379
    # 数据库索引
    database: 0
    # 密码
    password: 123456
    # 连接超时时间
    timeout: 10s
    lettuce:
      pool:
        # 连接池中的最小空闲连接
        min-idle: 0
        # 连接池中的最大空闲连接
        max-idle: 8
        # 连接池的最大数据库连接数
        max-active: 8
        # #连接池最大阻塞等待时间（使用负值表示没有限制）
        max-wait: -1ms

# token配置
token:
  # 令牌自定义标识
  header: Authorization
  # 令牌密钥
  secret: abcdefghijklmnopqrstuvwxyz
  # 令牌有效期（默认30分钟）
  expireTime: 30

mybatis-plus:
  #扫描mapper文件所在位置
#  mapper-locations: classpath*:mapper/**/*Mapper.xml
  mapper-locations: classpath*:mapper/**/*.xml
  #可以指定实体类所在包路径
  typeAliasesPackage: com.leromro.**.domain


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

# Swagger配置
swagger:
  # 是否开启swagger
  enabled: true
  # 请求前缀

# 防止XSS攻击
xss:
  # 过滤开关
  enabled: true
  # 排除链接（多个用逗号分隔）
  excludes: /system/notice
  # 匹配链接
  urlPatterns: /system/*,/monitor/*,/tool/*

wx:
  #微信开发者配置
  dev:
    url: https://api.weixin.qq.com
    app-id: wxe8a05852410396cf
    secret: ea6531db3d1a1d816343c41604642fea
  #微信支付配置
  pay:
    #微信开放平台申请的移动应用ID
    app-id: wxe8a05852410396cf
    #商户id
    mch-id: 1715022116
    #商户商户APIv2密钥
    mch-key: ff353bc0f3d64584be5bfac9203b7777
    tradeType: JSAPI
    #商户证书，用于退款
    key-path: classpath:apiclient_cert.p12
    #支付回调通知地址。必填项 这里真是域名地址即可
    notify-url: https://zybooks.tech/prod-api/core/users/orders/payNotify
    #退款回调通知地址
    refundNotifyUrl: https://zybooks.tech/prod-api/core/users/orders/refundNotify

aliyun:
  admpay:
    app-id: 2021003169699074
    private-key: MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC2n1TggyG/plig+EoG6Pc/4QPWktoxnQCS/AYbX89fF6CuQ8eYTETq/Bgx3AEqvd1vPXVrbgLEUpjVFy+I2JuNQJKgE7jbTc9wPaFjVETFLfsQI0Ro/RHWeGNpWdz5A7PciAZywh1+W54YeaX7EboHirG0KLgxuX72L3c2vVdUKGsKaVATtgk8P+ifsmf4t1YgkyXT5jgJvl68p8ya/UIhNJH8rxTxR0CGF6P1v/ks8JfgIOHboc3KW0u48zTGjgKrRrHgC2WqXczcepK9VaMSbzTvwQbhdXs1hFPMpL5Rd1rL9ZuSh/+62D8lYQi48RaqppBJqMmNnL1ApM82T4FrAgMBAAECggEBAKI5jWNW+V7OvQJZLSFQR3rGPuuYTh0uc7keCaq9hG/bhE/pQ9+lOL9pK3D3F05JlO/hL3I8KlcNbFg2nXI5wIxMpTNv8ZFWYIQ7KycaT3C9NL4UJgwBapwTG3QVcLb/tAGeD+RXTW3Wouzo+ym5iIB0kwEP/vek6QR2C7djoLTPIzHAZMVlhCWRSBU0yoIkZz0KZey0J8cTpN9EK5UmS599ClGZaGJP+SdkDT5ZCdjvjJdai1vGtKMcVR+fUxMaYetbtaa9A6yElbu/gkyuJjCXrjFXby8mOt8QdcJRFNq5pUxVyRwnye3oc7AHx5vLG0IpP0SGpXRju75jsZNop7kCgYEA9rA3/boiArZnigUNb6TWEnBJQG0I3king4+rrX7FnlEoE2nogZBAHnkqdh7YP0TgBjgmuAUF2/3maxj8a5mo5q404Pe9ENJwyQcvp4bhp/TQEVQw3arBGPmNnB6T/NlnQxTd94qilJT1lD6zI9kNNdV8LXo9iwT01YnEyFxTsk8CgYEAvYQJASrI7FB2x+jSJkn5HkmL37uyoxnTZZLZXHgk8GJxMcMd6m81LO6r/7bJJ6+tBifEigP7C0O0KtbHf4f+Hw384DiumuCoZvPBoRO9DDa1g4JZtNcDI9ftWzjxZuXXHJ5KfVkCjPFhJmuXW/g57fmjqIo0hPqjdpZ7fHHahCUCgYA0Z2bdjYbgEKOaHEyoZNnc/OFywDbcEY8UUZbkukN8yDy9MwhjTaNxVcgBY7gIaLc2WwNOoDKIcz1ZjutAaFoK9wLgr4AIbMvsyIwFCJAzP7xbkgj3beirR4gfnBdP5VccVvh4N4kmCybIITGo8djukLVaa9dbCuh/3E5jScm13QKBgCaNeZd3MLCCHefFARsw6TC0HXRCJrDvTAXZvcYF2t3b6NMKskdCoDqnwu2eLYWZQ0WBSYYaETPVbg1Y6/SRoayHl+21Gi//i8KFy9oMveSCLKK4Ha+gHc9o2aw5BUK9duknelfNh6tMX0sFkCDxejdjFVvv4Yc7xY0WR8ClGKLRAoGBAPLjPfFoC4o9KTgbBVpVu18GhDGU6LP75jVr2BM7ZR915WvcpPhvifRGNGkljVZIjEhzox+VOJx2Z9caCwmP4Kq+w/AZoQUvjBKMMBxk/MoplUvX92oC83iLMrYXdQwi7pxSWxk0TF5uNBSHXpwNosrJ5RI7Q2hdn8Jx51feBwhM
    alipay-public-key:
    server-url: https://openapi.alipay.com/gateway.do
    sign-type: RSA2
    cert-path: classpath:cert/appCertPublicKey.crt
    alipay-public-cert-path: classpath:cert/alipayCertPublicKey_RSA2.crt
    root-cert-path:  classpath:cert/alipayRootCert.crt