# 准备

{% hint style="warning" %}
**注意**：个人账户（免费版和高级版）、家庭版组织和企业版组织支持本地托管，免费版组织和团队版组织不支持本地托管。
{% endhint %}

这里以 CentOS 7 with Firewalld 上部署 Bitwarden 为例。

## 系统要求 <a href="#system-requirements" id="system-requirements"></a>

* 处理器：x64, 1.4GHz 或更高
* 内存：2GB 或更多
* 存储空间：10GB 或以上
* Docker：Engine 19+ 以及 Compose 1.24+
* 必须使用 https 才能正常使用（如注册新账号等）

| 软硬件       | 最低配置                        | 推荐配置                        |
| --------- | --------------------------- | --------------------------- |
| 处理器       | x64, 1.4GHz                 | x64, 2GHz 双核                |
| 内存        | 2GB RAM                     | 4GB RAM                     |
| 存储        | 12GB                        | 25GB                        |
| Docker 版本 | Engine 19+ 以及 Compose 1.24+ | Engine 19+ 以及 Compose 1.24+ |

## 配置域名 <a href="#configure-domain" id="configure-domain"></a>

这里假设使用的域名为：`vault.yourdomain.com`。

### 解析域名 <a href="#resolve-domain" id="resolve-domain"></a>

将域名 `vault.yourdomain.com` 的 A 记录解析到部署 Bitwarden 服务器所在的公网 IP 地址。

### 准备域名证书文件 <a href="#prepare-domain-certificate" id="prepare-domain-certificate"></a>

我们一般使用 Bitwarden 中由 Let's Encrypt 生成和更新的免费 SSL 证书，这样就不需要专门准备域名证书文件了。或者使用自己的证书文件（例如 DNSPod 上申请的 TrustAsia 免费 SSL 证书，证书文件放置于 Bitwarden 实例中）。或者在 Bitwarden 的前面使用反向代理的方式启用 HTTPS。

## 其他 <a href="#others" id="others"></a>

服务器防火墙开启相应的端口（比如 443）。


---

# 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://host.ppgg.in/bitwarden/preparation.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.
