frp-notify icon indicating copy to clipboard operation
frp-notify copied to clipboard

不支持toml配置文件吗

Open Ccnavi opened this issue 1 year ago • 4 comments

不支持toml配置文件吗 添加进去 就启动不起来frps了

Ccnavi avatar Mar 13 '24 09:03 Ccnavi

可以提供一下报错的例子吗

rainbend avatar Mar 19 '24 09:03 rainbend

同问,在新版 frps.toml中怎么写? 在原frps.ini中这样写是可以运行的 [plugin.frp-notify] addr = 127.0.0.1:50080 path = /handler ops = Login,NewProxy,CloseProxy,Ping,NewWorkConn,NewUserConn

尝试在frps.toml中这样 [[plugin.frp-notify]] addr = "127.0.0.1:50080" path = "/handler" ops = "Login,NewProxy,CloseProxy,Ping,NewWorkConn,NewUserConn" 但运行失败了,显示 json: unknown field "plugin"

zjsailor avatar Apr 09 '24 05:04 zjsailor

https://github.com/fatedier/frp/blob/v0.52.0/doc/server_plugin.md#server-plugin-configuration

@zjsailor frp 从 v0.52.0 开始,修改了配置文件的格式,我有时间更新一下frp-notify 的文档

rainbend avatar Apr 09 '24 05:04 rainbend

https://github.com/fatedier/frp/blob/v0.52.0/doc/server_plugin.md#server-plugin-configuration

@zjsailor frp 从 v0.52.0 开始,修改了配置文件的格式,我有时间更新一下frp-notify 的文档

太棒了,能用,每一个参数(Login,NewProxy,CloseProxy,Ping,NewWorkConn,NewUserConn)需要单独一个模块,端口用同一个就行,比如以下Login,NewProxy两项,分开写,如果有5项,就列5个模块。 [[httpPlugins]] name = "user-manager" addr = "127.0.0.1:50080" path = "/handler" ops = ["Login"]

[[httpPlugins]] name = "port-manager" addr = "127.0.0.1:50080" path = "/handler" ops = ["NewProxy"]

在dingding中,以及gotify中,可以显示消息 分别是login的消息:Login Version: 0.52.3, HostName: , Os: windows, Arch: amd64 newproxy的消息: NewProxy ProxyName: ssh2222, ProxyType: tcp, RemotePort: 6000

好像只是把frps的log文件的信息读取过来,推送到gotify 有没有办法获取客户端的IP地址啊?

zjsailor avatar Apr 09 '24 09:04 zjsailor