additionalProperties:
  formFields:
    - default: 40271
      edit: true
      envKey: PANEL_APP_PORT_HTTP
      labelEn: Port
      labelZh: 端口
      required: true
      rule: paramPort
      type: number
    - default: 40272
      edit: true
      envKey: PANEL_APP_PORT_CALLS
      labelEn: RTC Port
      labelZh: RTC 服务端口
      required: true
      rule: paramPort
      type: number
    - default: "false"
      edit: true
      envKey: MATTERMOST_CONTAINER_READONLY
      labelEn: Read Only Container
      labelZh: 只读容器
      required: false
      type: select
      values:
        - label: "True"
          value: "true"
        - label: "False"
          value: "false"
    - default: "./data/config"
      disabled: true
      envKey: MATTERMOST_CONFIG_PATH
      labelEn: Config Path
      labelZh: 配置路径
      required: true
      type: text
    - default: "./data/data"
      disabled: true
      envKey: MATTERMOST_DATA_PATH
      labelEn: Data Path
      labelZh: 数据路径
      required: true
      type: text
    - default: "./data/logs"
      disabled: true
      envKey: MATTERMOST_LOGS_PATH
      labelEn: Logs Path
      labelZh: 日志路径
      required: true
      type: text
    - default: "./data/plugins"
      disabled: true
      envKey: MATTERMOST_PLUGINS_PATH
      labelEn: Plugins Path
      labelZh: 插件路径
      required: true
      type: text
    - default: "./data/client/plugins"
      disabled: true
      envKey: MATTERMOST_CLIENT_PLUGINS_PATH
      labelEn: Client Plugins Path
      labelZh: 客户端插件路径
      required: true
      type: text
    - default: ""
      edit: true
      envKey: GITLAB_PKI_CHAIN_PATH
      labelEn: GitLab PKI Chain Path (Edit to remove comments in compose.yml to take effect)
      labelZh: GitLab PKI 链路径 (编辑去除compose.yml里的注释生效)
      required: false
      type: text
    - default: "./data/bleve/indexes"
      edit: true
      envKey: MATTERMOST_BLEVE_INDEXES_PATH
      labelEn: Bleve Indexes Path
      labelZh: Bleve 索引路径
      required: true
      type: text
    - default: "Asia/Shanghai"
      edit: true
      envKey: TZ
      labelEn: Time Zone
      labelZh: 时区
      required: true
      type: text
    - default: "postgres"
      disabled: true
      envKey: MM_SQLSETTINGS_DRIVERNAME
      labelEn: SQL Driver Name
      labelZh: SQL 驱动名称
      required: true
      type: text
    - default: "/mattermost/bleve-indexes"
      disabled: true
      envKey: MM_BLEVESETTINGS_INDEXDIR
      labelEn: Bleve Index Directory
      labelZh: Bleve 索引目录
      required: true
      type: text
    - default: "http://localhost:40271"
      edit: true
      envKey: MM_SERVICESETTINGS_SITEURL
      labelEn: Site URL
      labelZh: 站点 URL
      required: true
      rule: paramExtUrl
      type: text
    - default: postgresql
      envKey: PANEL_DB_TYPE
      labelEn: Database Service
      labelZh: 数据库服务
      required: true
      type: apps
      child:
        default: ""
        envKey: PANEL_DB_HOST
        required: true
        type: service
      values:
        - label: PostgreSQL
          value: postgresql
    - default: mattermost
      envKey: PANEL_DB_NAME
      labelEn: Database
      labelZh: 数据库名
      random: true
      required: true
      rule: paramCommon
      type: text
    - default: mattermost
      envKey: PANEL_DB_USER
      labelEn: User
      labelZh: 数据库用户
      random: true
      required: true
      rule: paramCommon
      type: text
    - default: mattermost
      envKey: PANEL_DB_USER_PASSWORD
      labelEn: Password
      labelZh: 数据库用户密码
      random: true
      required: true
      rule: paramComplexity
      type: password
