[GH-ISSUE #4594] frp是否支持Server Sent Events(SSE)? #3633

Closed
opened 2026-05-05 14:19:57 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @sdaduanbilei on GitHub (Dec 18, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4594

Bug Description

frpc 配置

serverAddr = ""
serverPort = 
auth.method = ""
auth.token = ""

[[proxies]]
name = "wt-28-api"
type = "tcp"
localIP = "127.0.0.1"
localPort = 8888
remotePort = 6989

nginx 配置

location /api/ {
        proxy_pass http://apiproxy/;
        proxy_set_header Host $host;
        proxy_pass_header Set-Cookie;
        proxy_redirect http://$host/ http://$http_host/;
        proxy_ssl_server_name on;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_http_version 1.1;
        chunked_transfer_encoding off;
        proxy_buffering off;
        proxy_cache off;
        add_header X-Accel-Buffering "no";
    }

结构为前后分离项目,前端部署在云服务器上,但是服务器性能不行所以通过frp 配置本地服务器提供后端服务,目前接口都已经正常访问,唯独 Server Sent Events(SSE) 一直未响应

frpc Version

frp_0.61.1_linux_amd64

frps Version

frp_0.61.1_linux_amd64

System Architecture

linux/amd64

Configurations

1

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @sdaduanbilei on GitHub (Dec 18, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4594 ### Bug Description frpc 配置 ``` serverAddr = "" serverPort = auth.method = "" auth.token = "" [[proxies]] name = "wt-28-api" type = "tcp" localIP = "127.0.0.1" localPort = 8888 remotePort = 6989 ``` nginx 配置 ``` location /api/ { proxy_pass http://apiproxy/; proxy_set_header Host $host; proxy_pass_header Set-Cookie; proxy_redirect http://$host/ http://$http_host/; proxy_ssl_server_name on; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_http_version 1.1; chunked_transfer_encoding off; proxy_buffering off; proxy_cache off; add_header X-Accel-Buffering "no"; } ``` 结构为前后分离项目,前端部署在云服务器上,但是服务器性能不行所以通过frp 配置本地服务器提供后端服务,目前接口都已经正常访问,唯独 Server Sent Events(SSE) 一直未响应 ### frpc Version frp_0.61.1_linux_amd64 ### frps Version frp_0.61.1_linux_amd64 ### System Architecture linux/amd64 ### Configurations 1 ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@sdaduanbilei commented on GitHub (Dec 18, 2024):

@fatedier 求指导

<!-- gh-comment-id:2550631498 --> @sdaduanbilei commented on GitHub (Dec 18, 2024): @fatedier 求指导
Author
Owner

@sdaduanbilei commented on GitHub (Dec 18, 2024):

845 没看明白

<!-- gh-comment-id:2550632794 --> @sdaduanbilei commented on GitHub (Dec 18, 2024): [845](https://github.com/fatedier/frp/issues/845) 没看明白
Author
Owner

@sdaduanbilei commented on GitHub (Dec 18, 2024):

已经解决,确认可以支持 sse

<!-- gh-comment-id:2550806034 --> @sdaduanbilei commented on GitHub (Dec 18, 2024): 已经解决,确认可以支持 sse
Author
Owner

@Starix610 commented on GitHub (Feb 12, 2026):

已经解决,确认可以支持 sse

请问你是怎么配置的呢

<!-- gh-comment-id:3888473718 --> @Starix610 commented on GitHub (Feb 12, 2026): > 已经解决,确认可以支持 sse 请问你是怎么配置的呢
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#3633
No description provided.