docs: update proxy doc

This commit is contained in:
Junyan Qin
2025-12-12 07:28:56 +08:00
parent 4f16171db3
commit 65c7b01e06
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -59,10 +59,12 @@ sudo apt install certbot python3-certbot-nginx
sudo certbot --nginx
```
Follow the prompts to enter your domain name, and certificate application and NGINX configuration will be completed automatically. If you need to configure manually, you can refer to the following content.
Follow the prompts to enter your domain name, and certificate application and NGINX configuration will be completed automatically. Please refer to the following content to complete the NGINX configuration.
### Configure NGINX Reverse Proxy
LangBot's pipeline debugging feature requires using WebSocket connections, so NGINX needs to be configured to support WebSocket.
Edit the NGINX configuration file `/etc/nginx/sites-available/langbot` (you can use vim or nano editor):
```nginx
+3 -1
View File
@@ -59,10 +59,12 @@ sudo apt install certbot python3-certbot-nginx
sudo certbot --nginx
```
按照提示输入域名,证书申请与 NGINX 配置会自动完成。如果需要手动配置,可参考以下内容。
按照提示输入域名,证书申请与 NGINX 配置会自动完成。请参考如下内容完成 NGINX 配置。
### 配置 NGINX 反向代理
LangBot 的流水线调试功能需要使用 WebSocket 连接,因此需要配置 NGINX 支持 WebSocket。
编辑 NGINX 配置文件 `/etc/nginx/sites-available/langbot`(可以使用 vim 或 nano 编辑器):
```nginx