# 开发环境
ruoyi:
  # 名称
  name: 汉邦云平台
  # 版本
  version: 3.8.5
  # 版权年份
  copyrightYear: 2023
  # 实例演示开关
  demoEnabled: true
  # 文件路径
  profile: D:/workspace/source/hb_resource_server/uploadPath
  # 获取ip地址开关
  addressEnabled: false
  # 验证码类型 math 数组计算 char 字符验证
  captchaType: math

goview:
  ossURL: http://127.0.0.1:8090

security:
  require-ssl: true

# 开发环境配置
server:
  # 服务器的HTTP端口，默认为8080
  port: 8091
#  ssl:
#    key-store: classpath:hb3dp.com.pfx
#    key-store-password: 172zioa0
#    keyStoreType: PKCS12

  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.ruoyi: debug
    org.springframework: warn

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

# Spring配置
spring:
  profiles:
    active: dev
  # 资源信息
  messages:
    # 国际化资源文件路径
    basename: i18n/messages
  # 文件上传
  servlet:
    multipart:
      # 单个文件大小
      max-file-size:  2048MB
      # 设置总上传的文件大小
      max-request-size:  2048MB
      enabled: true
  # 服务模块
  devtools:
    restart:
      # 热部署开关
      enabled: true
  # redis 配置
  redis:
    # 地址
    host: 8.134.76.66
    # 端口，默认为6379
    port: 6379
    # 数据库索引
    database: 0
    # 密码
    password: hb123.com
    # 连接超时时间
    timeout: 3000ms
    lettuce:
      pool:
        # 连接池中的最小空闲连接
        min-idle: 10
        # 连接池中的最大空闲连接
        max-idle: 10
        # 连接池的最大数据库连接数
        max-active: 32
        # #连接池最大阻塞等待时间（使用负值表示没有限制）
        max-wait: 2000ms
        # 新增空闲检测
        time-between-eviction-runs: 30s
      #控制命令执行超时
      shutdown-timeout: 100ms
      validation-query: "PING"
      test-while-idle: true
      test-on-borrow: true
  mail:
    host: smtp.qq.com          # SMTP 服务器地址（QQ 邮箱是 smtp.qq.com，163 是 smtp.163.com，Gmail 是 smtp.gmail.com）
    port: 465                  # SMTP 端口，一般 SSL 用 465，TLS 用 587
    username: adamlawen@qq.com      # 发送方邮箱
    password: wjytgzvknlfudihe   # 邮箱的授权码（不是登录密码）
    protocol: smtps
    properties:
      mail:
        smtp:
          auth: true
          ssl:
            enable: true
  main:
    allow-bean-definition-overriding: true

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

# minio配置
# 测试环境MinIO
minio:
  endpoint: https://web.hb3dp.com:9091
  bucket: model
  downloadURL: https://web.hb3dp.com:9091
  accessKey: TpcXbvR6ofGFLAtZ
  secretKey: sHJojNu3TAL5ZYjoNgTMQhIwTmlA1YG1

# MyBatis配置
#mybatis:
#  # 搜索指定包别名
#  typeAliasesPackage: com.ruoyi.**.domain
#  # 配置mapper的扫描，找到所有的mapper.xml映射文件
#  mapperLocations: classpath*:mapper/**/*Mapper.xml
#  # 加载全局的配置文件
#  configLocation: classpath:mybatis/mybatis-config.xml

mybatis-plus:
  config-location: classpath:mybatis/mybatis-config.xml
  type-aliases-package: com.ruoyi.**.domain
  mapper-locations: classpath*:mapper/**/*Mapper.xml
  global-config:
    banner: false

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

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

# Swagger配置
swagger:
  # 是否开启swagger
  enabled: true
  # 请求前缀
  pathMapping:    # /dev-api  有问题

  # 排序
#  ui-config:
#    tags-sorter: alpha
#    operations-sorter: alpha

# https://segmentfault.com/a/1190000041143413
knife4j:
  # 开启增强配置
  enable: true
  # 开启生产环境屏蔽
  production: false
  # 设置
  setting:
    enableFooter: false
    enableFooterCustom: true
    footerCustomContent: Copyright  2023-[汉邦云平台](https://web.hb3dp.com)

ufop:
  #存储类型 0:本地磁盘存储  1:阿里云OSS 2:FastDFS存储 3:MinIO 4:七牛云KODO
  storage-type: 3
  #文件存储路径
  local-storage-path: D:\\Data
  bucket-name: upload
  #图片缩略图
  thumb-image:
    width: 150
    height: 150
  #阿里云oss基本配置
  aliyun:
    oss:
      endpoint:
      access-key-id:
      access-key-secret:
      bucket-name:
  #FastDFS配置
  fdfs:
    #读取时间
    so-timeout: 15000
    #超时连接时间
    connect-timeout: 15000
    # 连接池最大数量
    pool.max-total: 200
    #单个tracker最大连接数
    pool.max-total-per-key: 50
    #连接耗尽最大等待时间 毫秒
    pool.max-wait-millis: 5000
    tracker-list: 127.0.0.1:22122
  #MinIO基本配置
  minio:
    endpoint: https://web.hb3dp.com:9091
    access-key: TpcXbvR6ofGFLAtZ
    secret-key: sHJojNu3TAL5ZYjoNgTMQhIwTmlA1YG1
    bucket-name: test
  #七牛云Kodo配置
  qiniuyun:
    kodo:
      domain:
      endpoint:
      access-key:
      secret-key:
      bucket-name:

deployment:
  host: web.hb3dp.com

filesize-max: 5242880

files:
  storage:
  storage-folder: documents
  docservice:
    fillforms-docs: .oform|.docx
    viewed-docs: .pdf|.djvu|.xps|.oxps
    edited-docs: .docx|.xlsx|.csv|.pptx|.txt|.docxf
    convert-docs: .docm|.dotx|.dotm|.dot|.doc|.odt|.fodt|.ott|.xlsm|.xlsb|.xltx|.xltm|.xlt|.xls|.ods|.fods|.ots|.pptm|.ppt|.ppsx|.ppsm|.pps|.potx|.potm|.pot|.odp|.fodp|.otp|.rtf|.mht|.html|.htm|.xml|.epub|.fb2
    timeout: 120000
    history:
      postfix: -hist
    url:
      site: https://web.hb3dp.com:8012/
      converter: ConvertService.ashx
      command: coauthoring/CommandService.ashx
      api: web-apps/apps/api/documents/api.js
      preloader: web-apps/apps/api/documents/cache-scripts.html
      example:
    secret: abcdefghijklmnopqrstuvwxyz
    header: Token
    verify-peer-off: true
    languages: en:English|hy:Armenian|az:Azerbaijani|eu:Basque|be:Belarusian|bg:Bulgarian|ca:Catalan|zh:Chinese (People's Republic of China)|zh-TW:Chinese (Traditional, Taiwan)|cs:Czech|da:Danish|nl:Dutch|fi:Finnish|fr:French|gl:Galego|de:German|el:Greek|hu:Hungarian|id:Indonesian|it:Italian|ja:Japanese|ko:Korean|lv:Latvian|lo:Lao|ms:Malay (Malaysia)|nb:Norwegian|pl:Polish|pt:Portuguese (Brazil)|pt-PT:Portuguese (Portugal)|ro:Romanian|ru:Russian|sk:Slovak|sl:Slovenian|es:Spanish|sv:Swedish|tr:Turkish|uk:Ukrainian|vi:Vietnamese

logo:
  image:
  imageEmbedded:
  url: https://www.onlyoffice.com

elasticsearch:
  host: 8.134.76.66
  port: 9200
  scheme: http
