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.43k stars 13.37k forks source link

[Feature Request] 服务端插件 RPC 支持通过 UDS 连接 #3673

Closed xqzr closed 11 months ago

xqzr commented 1 year ago

Describe the feature request

通过 unix 域套接字(UNIX-domain socket)连接。形如🔽

# frps.toml
bindPort = 7000

[[httpPlugins]]
name = "user-manager"
addr = "unix:/dev/shm/frpLG.socket"
path = "/handler"
ops = ["Login"]

[[httpPlugins]]
name = "port-manager"
addr = "https://unix:/dev/shm/frpNP.socket"
path = "/handler"
ops = ["NewProxy"]

UDS 相比 TCP 它没有 IP(IPv4)、TCP 层校验 、0-RTT。

参考: https://github.com/fatedier/frp/blob/dev/doc/server_plugin.md#server-plugin-configuration https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass

Describe alternatives you've considered

通过 IPv6 连接。形如🔽

[[httpPlugins]]
name = "user-manager"
addr = "[::1]:9000"
path = "/handler"
ops = ["Login"]

Affected area

fatedier commented 1 year ago

插件功能更多的扩展方式和能力,在较长期的规划里,暂时不会有太多改动。

github-actions[bot] commented 12 months ago

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