# LobFile 托管

{% hint style="warning" %}

#### 警告

该托管方法的文件大小限制是 100MB
{% endhint %}

通过**免费的在线服务**自动上传您的资源包，且服务器遍布世界各地。\
非常感谢 **LobFile**[ ](https://ploudos.com/it/)提供他们的平台来免费托管文件！

{% embed url="<https://lobfile.com/>" %}

## 有什么优势？

* 下载速度
* 可用性
* 安全性：您的服务器 IP 地址不会暴露
* 无高带宽使用

## 我已经使用 `self-host`，这个更好吗？

视情况而定。

如果您正在开发资源包并且需要不断运行 `/iazip`，最好使用 [self-host](https://itemsadder.devs.beer/chinese/cha-jian-shi-yong-fang-fa/resourcepack-hosting/resourcepack-self-hosting)，以避免浪费时间（阅读更多 [这里](https://itemsadder.devs.beer/chinese/cha-jian-shi-yong-fang-fa/fast-resourcepack-tips)）。

当您完成资源包的开发后，可以安全地开始使用这个托管功能而不是 `self-host`，在这种情况下使用 **LobFile**。\
这将降低您的服务器流量，因为资源包不再托管在您的服务器上。\
如果您的玩家群体都来自同一个国家，您可以继续使用 `self-host`。

## 设置

#### 第一步

在 [LobFile 这里](https://lobfile.com/create-account) 创建一个账户。

#### 第二步

打开您的 [账户设置](https://lobfile.com/my-account) 并勾选 ***"Continuous uploading"***

<figure><img src="https://2963347129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M28TcKgSDvuFN510qye-3369173170%2Fuploads%2Fgit-blob-57b8855fe37e6a6ca7f1f100dc904f0ca2607011%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

#### 第三步

悬停在 `API Key` 文本上并复制您的密钥。

<figure><img src="https://2963347129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M28TcKgSDvuFN510qye-3369173170%2Fuploads%2Fgit-blob-f5557e47564aee39465776e113b83ecfaca0c558%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

#### 第四步

在 `config.yml` 中启用 `lobfile` 并禁用所有其他托管方法。

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

```yaml
lobfile:
  enabled: true
```

{% endcode %}

打开 `secret.yml` 并粘贴您的 `API Key`。

{% code title="ItemsAdder/secret.yml" %}

```yaml
lobfile:
  api_key: xxxxxxxxxx
```

{% endcode %}

#### 第五步

运行 `/iazip.`

等待隐私政策消息出现。\
运行 `/acceptprivacy` 以接受政策（仅第一次会被询问）。

### 完成

**插件**将**自动上传**资源包。\
无需其他操作，享受您的**免费自动化资源包托管**。

## 我的资源包会在线提供给随机人吗？

2023-12-21:\
您的资源包不会被 Google 索引，也不会发布在资源包列表中。\
只有知道链接的人才能下载该包。

我不为此负责，产品原描述提供。我也不是 LobFile 的所有者。


---

# 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/lobfile-hosting.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.
