frp icon indicating copy to clipboard operation
frp copied to clipboard

[Feature Request] 可配置 Websockets 路径

Open fanthos opened this issue 1 year ago • 2 comments

Describe the feature request

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

Describe alternatives you've considered

No response

Affected area

  • [ ] Docs
  • [X] Installation
  • [ ] Performance and Scalability
  • [ ] Security
  • [X] User Experience
  • [ ] Test and Release
  • [ ] Developer Infrastructure
  • [ ] Client Plugin
  • [ ] Server Plugin
  • [ ] Extensions
  • [ ] Others

fanthos avatar Feb 01 '24 02:02 fanthos

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

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

fatedier avatar Feb 21 '24 12:02 fatedier

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

fanthos avatar Feb 22 '24 00:02 fanthos

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

github-actions[bot] avatar Mar 15 '24 00:03 github-actions[bot]