# OneDrive 托管

{% hint style="warning" %}
**不推荐使用。**
{% endhint %}

### 步骤 1

![](/files/5i6aVVPSL7aSE0WgxRYp)

### 步骤 2

![](/files/5cfxOLfmaZOhs7cFlwsh)

### 步骤 3

![](/files/4uILPGVopGwEkXFF27IR)

### 步骤 4

打开 **ItemsAdder** 的 `config.yml` 文件，并为你的新 URL 启用 `external-host` 选项。

{% code title="config.yml" %}

```yaml
    external-host:
      enabled: true
      url: 'https://onedrive.live.com/yoururl.....'
      skip-url-file-type-check___DONT_ASK_HELP_IF_SET_TRUE: true
```

{% endcode %}

这非常重要。将其设置为 true。

```yaml
skip-url-file-type-check___DONT_ASK_HELP_IF_SET_TRUE: true
```

{% hint style="warning" %}
请记住，这有点“冒险”，因为服务器无法确保 URL 有效。

如果 URL 无效或 OneDrive 不提供直接下载（有时会发生），这可能会导致您的玩家卡在登录阶段。
{% endhint %}

## 如果需要，继续安装

{% content-ref url="/pages/-M2DaLP4y3wYXxs9pJdt" %}
[首次安装](/chinese/first-install.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://itemsadder.devs.beer/chinese/cha-jian-shi-yong-fang-fa/resourcepack-hosting/onedrive.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
