fatedier / frp

A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.
Apache License 2.0
86.33k stars 13.35k forks source link

[Feature Request] 可配置 Websockets 路径 #3965

Closed fanthos closed 7 months ago

fanthos commented 9 months ago

Describe the feature request

根据代码描述,FrpWebsocketPath是固定的/~!frp。希望将这个放到配置文件中,可以使用反向代理(如nginx)在同一个端口使用多个frp后端。

Describe alternatives you've considered

No response

Affected area

fatedier commented 8 months ago

这样的参数暴露的越多,对之后的维护负担就越重,所以目前倾向于尽量不对用户暴露非必要的一些参数。

这个场景中,建议可以可以考虑通过 host 实现端口复用。

fanthos commented 8 months ago

之前考虑过使用host进行复用,但是如果前面有cdn或者其他反代服务时候,host不能随意改。

github-actions[bot] commented 8 months ago

Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.