A New Frp Auth Method

Frp v0.64.0 提到:

Support tokenSource for loading authentication tokens from files.

即,支持从文件加载 token,这下终于不必再把 token 写在配置里了。

配置

frps.toml or frpc/toml 现在可以这样写:

auth.method = "token"
auth.tokenSource.type = "file"
auth.tokenSource.file.path = "/etc/frp/token"

然后把 token 写在 /etc/frp/token 里就好。

留下评论

您的邮箱地址不会被公开。 必填项已用 * 标注