summaryrefslogtreecommitdiff
path: root/docs/locales/zh/getting_started/reverse_proxy
diff options
context:
space:
mode:
authorLibravatar CDN <cdn@0x15lab.net>2025-02-09 18:13:08 +0800
committerLibravatar GitHub <noreply@github.com>2025-02-09 11:13:08 +0100
commit62f25ea08aa5d537ab5a207c2325812b35da1f3a (patch)
tree69cfcfae5531b1f59e93264815b67f38f066bb8d /docs/locales/zh/getting_started/reverse_proxy
parent[chore] fix typo in docs (#3758) (diff)
downloadgotosocial-62f25ea08aa5d537ab5a207c2325812b35da1f3a.tar.xz
[docs/zh] Update zh docs: synced to e10de84 (#3763)
* [docs/zh] Update zh docs: synced to e10de84 * [docs/zh] update mkdocs config of zh docs * [docs/zh] update repo docs translations (README, ROADMAP, CONTRIBUTING) + update swagger schema metadata of docs/zh
Diffstat (limited to 'docs/locales/zh/getting_started/reverse_proxy')
-rw-r--r--docs/locales/zh/getting_started/reverse_proxy/apache-httpd.md4
-rw-r--r--docs/locales/zh/getting_started/reverse_proxy/index.md6
-rw-r--r--docs/locales/zh/getting_started/reverse_proxy/nginx.md6
3 files changed, 10 insertions, 6 deletions
diff --git a/docs/locales/zh/getting_started/reverse_proxy/apache-httpd.md b/docs/locales/zh/getting_started/reverse_proxy/apache-httpd.md
index f371178bc..e3d3fed13 100644
--- a/docs/locales/zh/getting_started/reverse_proxy/apache-httpd.md
+++ b/docs/locales/zh/getting_started/reverse_proxy/apache-httpd.md
@@ -48,7 +48,7 @@ sudo systemctl restart gotosocial.service
### 使用 mod_md 启用 TLS
-!!! note
+!!! note "注意"
`mod_md` 自 Apache 2.4.30 开始可用,仍被视为实验性的。实际上,它在实践中表现良好,是最便捷的方法。
现在我们将配置 Apache HTTP 服务器来处理 GoToSocial 请求。
@@ -166,7 +166,7 @@ sudo systemctl restart apache2
### 使用外部管理证书启用 TLS
-!!! note
+!!! note "注意"
我们有关于如何[配置 TLS 证书](../../advanced/certificates.md)的额外文档,其中还提供了不同发行版的其他内容和教程链接,可能值得查看。
如果你更喜欢手动设置或使用不同服务(如 Certbot)来管理 SSL,可以为你的 Apache HTTP 服务器使用更简单的设置。
diff --git a/docs/locales/zh/getting_started/reverse_proxy/index.md b/docs/locales/zh/getting_started/reverse_proxy/index.md
index c0aa0df4f..6bc3813d8 100644
--- a/docs/locales/zh/getting_started/reverse_proxy/index.md
+++ b/docs/locales/zh/getting_started/reverse_proxy/index.md
@@ -11,7 +11,7 @@ GoToSocial 可以直接暴露到互联网上。不过,许多人更愿意使用
* 如果你使用了 Lets Encrypt,在 GoToSocial 中禁用它。将 `letsencrypt-enabled` 设置为 `false`
* 配置反向代理以处理 TLS 并将请求代理到 GoToSocial
-!!! warning
+!!! warning "警告"
不要更改 `host` 配置选项的值。这必须保持为其他实例在互联网上看到的实际域名。相反,改变 `bind-address` 并更新 `port` 和 `trusted-proxies`。
### 容器
@@ -41,3 +41,7 @@ GoToSocial 可以直接暴露到互联网上。不过,许多人更愿意使用
使用反向代理时,必须特别注意允许 WebSockets 正常工作。因为许多客户端应用程序使用 WebSockets 来流式传输你的时间线。WebSockets 不用于联合。
请确保阅读 [WebSocket](websocket.md) 文档,并相应地配置你的反向代理。
+
+## 可信代理
+
+使用反向代理时,可能会遇到速率限制和 `trusted-proxies` 相关的问题。如有任何问题,请查阅[可信代理](../../configuration/trusted_proxies.md)文档。
diff --git a/docs/locales/zh/getting_started/reverse_proxy/nginx.md b/docs/locales/zh/getting_started/reverse_proxy/nginx.md
index 62b36f7a8..86f3923e9 100644
--- a/docs/locales/zh/getting_started/reverse_proxy/nginx.md
+++ b/docs/locales/zh/getting_started/reverse_proxy/nginx.md
@@ -2,7 +2,7 @@
要使用 NGINX 作为 GoToSocial 的反向代理,你需要在服务器上安装它。如果你打算让 NGINX 处理 TLS,你还需要[配置 TLS 证书](../../advanced/certificates.md)。
-!!! tip
+!!! tip "提示"
通过在 `server` 块中包含 `http2 on;` 来启用 NGINX 的 HTTP/2。这样可以加快客户端的体验。请参阅 [ngx_http_v2_module 文档](https://nginx.org/en/docs/http/ngx_http_v2_module.html#example)。
NGINX 已为[多个发行版打包](https://repology.org/project/nginx/versions)。你很可能可以使用发行版的包管理器来安装它。你也可以使用 Docker Hub 上发布的[官方 NGINX 镜像](https://hub.docker.com/_/nginx)通过容器运行 NGINX。
@@ -112,7 +112,7 @@ sudo systemctl restart nginx
## 设置 TLS
-!!! warning
+!!! warning "警告"
我们有关于如何[配置 TLS 证书](../../advanced/certificates.md)的附加文档,还提供了有关不同发行版的附加内容和教程链接,值得一看。
你现在可以运行 certbot,它将引导你完成启用 https 的步骤。
@@ -145,7 +145,7 @@ sudo systemctl start gotosocial
如果你再次打开 NGINX 配置,你会发现 Certbot 添加了一些额外的行。
-!!! warning
+!!! warning "警告"
根据你设置 Certbot 时选择的选项,以及使用的 NGINX 版本,可能会有所不同。
```nginx