additionalProperties:
  formFields:
    - child:
        default: ""
        envKey: PANEL_POSTGRES_SERVICE
        required: true
        type: service
      default: postgresql
      envKey: PANEL_POSTGRES_TYPE
      labelZh: Postgres 服务 (前置检查)
      labelEn: Postgres Service (Pre-check)
      label:
        en: Postgres Service (Pre-check)
        zh: Postgres 服务 (前置检查)
      required: true
      type: apps
      values:
        - label: PostgreSQL
          value: postgresql
    - default: "./data"
      edit: true
      envKey: READECK_ROOT_PATH
      labelZh: 数据持久化路径
      labelEn: Data persistence path
      label:
        en: Data persistence path
        zh: 数据持久化路径
      required: true
      type: text
    - default: 8000
      edit: true
      envKey: PANEL_APP_PORT_HTTP
      labelZh: WebUI 端口
      labelEn: WebUI port
      label:
        en: WebUI port
        zh: WebUI 端口
      required: true
      rule: paramPort
      type: number
    - default: "127.0.0.1"
      edit: true
      envKey: POSTGRES_HOST
      labelZh: 数据库 主机地址
      labelEn: Database Host
      label:
        en: Database Host
        zh: 数据库 主机地址
      required: true
      type: text
    - default: 5432
      edit: true
      envKey: POSTGRES_PORT
      labelZh: 数据库 端口
      labelEn: Database Port
      label:
        en: Database Port
        zh: 数据库 端口
      required: true
      rule: paramPort
      type: number
    - default: "readeck"
      edit: true
      envKey: POSTGRES_NAME
      labelZh: 数据库 名称
      labelEn: Database Name
      label:
        en: Database Name
        zh: 数据库 名称
      required: true
      rule: paramCommon
      type: text
    - default: "readeck"
      edit: true
      envKey: POSTGRES_USER
      labelZh: 数据库 用户名
      labelEn: Database Username
      label:
        en: Database Username
        zh: 数据库 用户名
      required: true
      type: text
    - default: ""
      edit: true
      envKey: POSTGRES_PASSWORD
      labelZh: 数据库 密码
      labelEn: Database Password
      label:
        en: Database Password
        zh: 数据库 密码
      random: true
      required: true
      rule: paramComplexity
      type: password
    - default: "/"
      edit: true
      envKey: READECK_SERVER_PREFIX
      labelZh: 前缀路径
      labelEn: Prefix path
      label:
        en: Prefix path
        zh: 前缀路径
      required: false
      type: text
    - default: ""
      edit: true
      envKey: READECK_ALLOWED_HOSTS
      labelZh: HTTP 请求中允许的主机名列表
      labelEn: HTTP request allowed host name list
      label:
        en: HTTP request allowed host name list
        zh: HTTP 请求中允许的主机名列表
      required: false
      type: text
    - default: ""
      edit: true
      envKey: READECK_SERVER_BASE_URL
      labelZh: 绑定域名
      labelEn: Binding domain
      label:
        en: Binding domain
        zh: 绑定域名
      required: false
      type: text
    - default: 24
      edit: true
      envKey: READECK_PUBLIC_SHARE_TTL
      labelZh: 分享有效期
      labelEn: Share validity period
      label:
        en: Share validity period
        zh: 分享有效期
      required: true
      type: number
    - default: "smtp.qq.com"
      edit: true
      envKey: READECK_MAIL_HOST
      labelZh: 邮件服务器
      labelEn: Mail Server
      label:
        en: Mail Server
        zh: 邮件服务器
      required: false
      type: text
    - default: 465
      edit: true
      envKey: READECK_MAIL_PORT
      labelZh: 邮件服务器 端口
      labelEn: Mail Server Port
      label:
        en: Mail Server Port
        zh: 邮件服务器 端口
      required: false
      type: number
    - default: ""
      edit: true
      envKey: READECK_MAIL_USERNAME
      labelZh: 邮件鉴权 用户名
      labelEn: Mail Username
      label:
        en: Mail Username
        zh: 邮件鉴权 用户名
      required: false
      type: text
    - default: ""
      edit: true
      envKey: READECK_MAIL_PASSWORD
      labelZh: 邮件鉴权 密码
      labelEn: Mail Password
      label:
        en: Mail Password
        zh: 邮件鉴权 密码
      required: false
      type: password
    - default: ""
      edit: true
      envKey: READECK_MAIL_FROM
      labelZh: 邮件发送者
      labelEn: Mail Sender
      label:
        en: Mail Sender
        zh: 邮件发送者
      required: false
      type: text
    - default: ""
      edit: true
      envKey: READECK_MAIL_FROMNOREPLY
      labelZh: 邮件发送者 (无回复)
      labelEn: Mail Sender (No Reply)
      label:
        en: Mail Sender (No Reply)
        zh: 邮件发送者 (无回复)
      required: false
      type: text
    - default: "false"
      edit: true
      envKey: READECK_MAIL_INSECURE
      labelZh: 服务器证书验证
      labelEn: Server certificate verification
      label:
        en: Server certificate verification
        zh: 服务器证书验证
      required: false
      type: select
      values:
        - label: 不验证
          value: "true"
        - label: 验证
          value: "false"
    - default: ""
      edit: true
      envKey: READECK_MAIL_ENCRYPTION
      labelZh: SMTP 主机 加密方式
      labelEn: SMTP Host Encryption Method
      label:
        en: SMTP Host Encryption Method
        zh: SMTP 主机 加密方式
      required: false
      type: select
      values:
        - label: StartTLS
          value: "starttls"
        - label: SSL/TLS
          value: "ssltls"
    - default: ""
      edit: true
      envKey: HTTP_PROXY
      labelZh: 网络代理
      labelEn: Network proxy
      label:
        en: Network proxy
        zh: 网络代理
      required: false
      type: text
