fix: add X-Accel-Buffering header on SSE response

This commit is contained in:
JustSong
2023-05-20 11:43:17 +08:00
parent 0728dd28b8
commit c59f758f2c
2 changed files with 1 additions and 3 deletions
-3
View File
@@ -103,13 +103,10 @@ server{
proxy_set_header X-Forwarded-For $remote_addr;
proxy_cache_bypass $http_upgrade;
proxy_set_header Accept-Encoding gzip;
proxy_buffering off; # 重要:关闭代理缓冲
}
}
```
注意,为了 SSE 正常工作,需要关闭 Nginx 的代理缓冲。
之后使用 Let's Encrypt 的 certbot 配置 HTTPS
```bash
# Ubuntu 安装 certbot