Skip to content

YML 配置参数说明

1.概述

esflow 的 yml 文件中的配置参数分为两类:

1.1 基本参数

其配置类为 easy-platform-base-core 工程下的 EsConfigProperties

1.2 流程相关参数

其配置类为 easy-platform-flow-core 工程下的 FlowEngineProperties。

其它的 spring boot 、mybatis plus 、anyline 相关参数没有在文档中体现。

2.参数说明

yml
esplat:
  code: #验证码相关
    length: 4 #验证码长度
    expireIn: 180 #验证码在 redis 中的过期时间
    image: #图片验证码相关
      url: "/auth/form"
      width: 80
      height: 48
  flow: #流程相关参数
    core:
      allow-no-role-user: true
      allow-reject-any-node: true
      allow-reset-auditor: true
  config: #基本参数
    multi-tenancy: false #是否支持多数据源
    request-security: true #是否对 post 请求参数进行解密,前端也有相关参数可配置
    login: #登录相关参数
      login-log: true
      login-max-try-count: 5 #允许的登录失败次数,超过后锁定账号
    pager: #分页参数
      page-no-params: pageNo
      page-size-params: pageSize
    cors: #跨域参数
      allow-credentials: true
      allowed-origin: http://120.79.67.190:8002
      ingore-auth: #不进行权限校验的地址配置
        - /swagger-ui/**
        - /api-docs/**
        - "**/code/image"
        - "**/code/sms"
        - "**/admin/file/preview"
        - "**/auth/**"
        - "/code/image"
        - "/code/sms"
        - "/admin/file/preview"
        - "/auth/**"
        - "/_.ico"
        - "/_.js"
        - "/_.css"
        - "/_.html"
    file: #文件上传相关参数配置
      storage-mode: minio
      allow-file-type:
        - pdf
        - jpg
        - png
        - tif
        - gif
        - jpeg
        - doc
        - docx
        - xls
        - xlsx
        - txt
      minio: #minio 相关参数配置
        service-url: http://127.0.0.1:10000/
        access-key: minio
        secret-key: minio123
        bucket: esflow
        port: 10000