config-examples.md 1.5 KB

KnowHub Plugin 配置示例

最小配置

{
  "plugins": {
    "entries": {
      "knowhub": {
        "enabled": true,
        "config": {
          "apiUrl": "http://43.106.118.91:9999",
          "submittedBy": "user@example.com"
        }
      }
    }
  }
}

完整配置

{
  "plugins": {
    "entries": {
      "knowhub": {
        "enabled": true,
        "config": {
          "apiUrl": "http://43.106.118.91:9999",
          "submittedBy": "user@example.com",
          "reminderMode": "normal",
          "enableServerExtraction": true,
          "privacyMode": "strict"
        }
      }
    }
  }
}

关闭提醒

{
  "plugins": {
    "entries": {
      "knowhub": {
        "enabled": true,
        "config": {
          "apiUrl": "http://43.106.118.91:9999",
          "submittedBy": "user@example.com",
          "reminderMode": "off"
        }
      }
    }
  }
}

禁用服务端提取

{
  "plugins": {
    "entries": {
      "knowhub": {
        "enabled": true,
        "config": {
          "apiUrl": "http://43.106.118.91:9999",
          "submittedBy": "user@example.com",
          "enableServerExtraction": false
        }
      }
    }
  }
}

使用远程服务器

{
  "plugins": {
    "entries": {
      "knowhub": {
        "enabled": true,
        "config": {
          "apiUrl": "https://knowhub.example.com",
          "submittedBy": "user@example.com",
          "privacyMode": "strict"
        }
      }
    }
  }
}