# 配置推送中继

{% hint style="success" %}
对应的[官方文档地址](https://bitwarden.com/help/configure-push-relay/)
{% endhint %}

默认情况下，您的自托管 Bitwarden 服务器配置为与 Bitwarden 的推送中继服务 (`https://push.bitwarden.com`) 进行通信。您可以选择使用自己的推送中继服务来配置服务器，如果您使用 [EU 云](/docs/security/server-geographies.md)，则可以连接到 EU 推送中继服务 (`https://push.bitwarden.eu`)，或完全禁用推送中继。

{% hint style="danger" %}
禁用推送中继将阻止**移动 App** 接收推送通知，这可能会影响：

* App [自动同步](/docs/password-manager/your-vault/syncing-your-vault.md#automatic-sync)的能力。但用户仍然可以[手动同步](/docs/password-manager/your-vault/syncing-your-vault.md#manual-sync)。
* App 自动注销用户的能力，这在轮换加密密钥或注销期间可能相关。
* App 自动注册组织中被撤销或被移除的用户的能力，这可能会导致对组织项目的访问持续时间比预期更长。
  {% endhint %}

对于每个使用 Bitwarden 推送中继服务的自托管服务器，Bitwarden 都会收集一条记录，其中包括最近一次连接到服务的时间戳和发起服务器的安装 ID。

## ~~更改推送中继服务~~ <a href="#change-push-relay-service" id="change-push-relay-service"></a>

~~要使用您自己的推送中继服务配置服务器：~~

1. ~~打开 `./bwdata/docker/global.env`。~~
2. ~~在 `globalSettings__pushRelayBaseUri=` 中指定您的推送中继服务的 URI。~~
3. ~~运行 `./bitwarden.sh restart` 以应用您的更改。~~

## 禁用推送中继 <a href="#disable-push-relay" id="disable-push-relay"></a>

要为标准服务器安装禁用推送中继：

1. 打开 `./bwdata/config.yml`。
2. 将 `push_notifications: true` 属性更改为 `false`。
3. 运行 `./bitwarden.sh rebuild` 以应用您的更改。

要为离线和手动服务器安装禁用推送中继：

1. 打开 `./bwdata/env/global.override.env`。
2. 添加一行 `globalSettings__pushRelayBaseUri=`（它的值应为**空**）。
3. 重启 Bitwarden 以应用更改。


---

# 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://help.ppgg.in/docs/self-hosting/deploy-and-configure/configuration-options/configure-push-relay.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.
