1Panel-dev / 1Panel-dev/1Panel
[Feature] Support disabling proxy buffering in Reverse Proxy settings for AI streaming / SSE
@wanghe-fit2cloud is already working on this.
Since Aug 25, 2026.
- Dominant language
- Go
- Stars
- 37k
- Forks
- 3.4k
- Avg merge
- 9h 16m
- Merged PRs (30d)
- 105
Description
1Panel Version
v2.2.5 (Latest)
Please describe your needs or suggestions for improvements
With the rapid adoption of AI / LLM applications (such as OpenAI API reverse proxies, Ollama, Dify, FastGPT, NextChat, Open-WebUI, and AI agent backends), responses are typically delivered via Server-Sent Events (SSE) and continuous streaming.
Currently, when configuring a Reverse Proxy in 1Panel, Nginx/OpenResty enables proxy_buffering by default. There is no GUI option in the Reverse Proxy configuration panel to toggle it off, requiring users to manually edit the website's raw Nginx configuration file.
When proxy_buffering is enabled:
- Lagging / Broken Streaming Experience: Nginx buffers response chunks until the buffer is full, preventing real-time typewriter streaming and causing output to appear in large delayed batches.
- Connection Interruptions: Long-running AI streaming responses are more susceptible to buffer timeouts or unexpected disconnections.
Please describe the solution you suggest
Add a toggle switch in the Reverse Proxy (反向代理) configuration dialog:
- UI Option: A switch for
Proxy Buffering(orEnable Proxy Buffering, default: On) /Disable Proxy Buffering (SSE / Streaming Support). - Generated Configuration: When buffering is disabled, 1Panel should automatically add the following directives to the corresponding
locationblock:
proxy_buffering off;
proxy_cache off;
chunked_transfer_encoding on;
proxy_set_header X-Accel-Buffering no;
Additional Information
Disabling buffering for AI chat and SSE is a standard and frequent requirement for modern self-hosted AI services. Adding a GUI toggle will greatly enhance the user experience for developers and homelab users without requiring manual Nginx file hacking.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.