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)
      required: true
      type: apps
      values:
        - label: PostgreSQL
          value: postgresql
    - child:
        default: ""
        envKey: PANEL_REDIS_SERVICE
        required: true
        type: service
      default: redis
      envKey: PANEL_REDIS_TYPE
      labelZh: Redis 服务 (前置检查)
      labelEn: Redis Service (Pre-check)
      required: true
      type: apps
      values:
        - label: Redis
          value: redis
    - default: "/home/mastodon"
      edit: true
      envKey: MASTODON_ROOT_PATH
      labelZh: 数据持久化路径
      labelEn: Data persistence path
      required: true
      type: text
    - default: 3000
      edit: true
      envKey: PANEL_APP_PORT_HTTP
      labelZh: WebUI 端口
      labelEn: WebUI port
      required: true
      rule: paramPort
      type: number
    - default: 4000
      edit: true
      envKey: PANEL_APP_PORT_STREAM
      labelZh: Stream 端口
      labelEn: Stream port
      required: true
      rule: paramPort
      type: number
    - default: ""
      edit: true
      envKey: ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY
      labelZh: 数据库加密密钥
      labelEn: Database encryption key
      required: true
      type: text
    - default: ""
      edit: true
      envKey: ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT
      labelZh: 数据库加密盐
      labelEn: Database encryption salt
      required: true
      type: text
    - default: ""
      edit: true
      envKey: ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY
      labelZh: 数据库加密主键
      labelEn: Database encryption primary key
      required: true
      type: text
    - default: ""
      edit: true
      envKey: SECRET_KEY_BASE
      labelZh: 密钥
      labelEn: Secret key
      required: true
      type: text
    - default: ""
      edit: true
      envKey: OTP_SECRET
      labelZh: OTP 密钥
      labelEn: OTP secret
      required: true
      type: text
    - default: "127.0.0.1"
      edit: true
      envKey: DB_HOST
      labelZh: 数据库 主机地址
      labelEn: Database Host
      required: true
      type: text
    - default: 5432
      edit: true
      envKey: DB_PORT
      labelZh: 数据库 端口
      labelEn: Database Port
      required: true
      rule: paramPort
      type: number
    - default: "mastodon"
      edit: true
      envKey: DB_NAME
      labelZh: 数据库 名称
      labelEn: Database Name
      required: true
      rule: paramCommon
      type: text
    - default: "mastodon"
      edit: true
      envKey: DB_USER
      labelZh: 数据库 用户名
      labelEn: Database Username
      required: true
      type: text
    - default: ""
      edit: true
      envKey: DB_PASS
      labelZh: 数据库 密码
      labelEn: Database Password
      random: true
      required: true
      rule: paramComplexity
      type: password
    - default: "127.0.0.1"
      edit: true
      envKey: REDIS_HOST
      labelZh: Redis 主机
      labelEn: Redis Host
      required: true
      type: text
    - default: 6379
      edit: true
      envKey: REDIS_PORT
      labelZh: Redis 端口
      labelEn: Redis Port
      required: true
      rule: paramPort
      type: number
    - default: 0
      edit: true
      envKey: REDIS_DB
      labelZh: Redis 索引 (0-20)
      labelEn: Redis Index (0-20)
      required: true
      type: number
    - default: ""
      edit: true
      envKey: REDIS_USERNAME
      labelZh: Redis 用户名
      labelEn: Redis UserName
      required: false
      type: text
    - default: ""
      edit: true
      envKey: REDIS_PASSWORD
      labelZh: Redis 密码
      labelEn: Redis Password
      required: false
      type: password
    - default: "127.0.0.1"
      edit: true
      envKey: ES_HOST
      labelZh: ES数据库 主机地址
      labelEn: Database Host
      required: false
      type: text
    - default: 9200
      edit: true
      envKey: ES_PORT
      labelZh: ES数据库 端口
      labelEn: Database Port
      required: false
      rule: paramPort
      type: number
    - default: "elastic"
      edit: true
      envKey: ES_USER
      labelZh: ES数据库 用户名
      labelEn: Database Username
      required: false
      type: text
    - default: ""
      edit: true
      envKey: ES_PASS
      labelZh: ES数据库 密码
      labelEn: Database Password
      random: true
      required: false
      rule: paramComplexity
      type: password
