sword

利用Frp对外提供简单的文件访问服务
通过FRP的 static_file 插件可以对外提供一个简单的基于 HTTP 的文件访问服务。frps服务端无需...
扫描右侧二维码阅读全文
01
2018/05

利用Frp对外提供简单的文件访问服务

通过FRP的 static_file 插件可以对外提供一个简单的基于 HTTP 的文件访问服务。

frps服务端无需其他配置,只需要设置frpc客户端,需要0.16.0以上版本

[common]
server_addr = freenat.bid
server_port = 7000
privilege_token = frp888
log_file = frpc.log
log_level = info
log_max_days = 7
login_fail_exit = false
protocol = kcp

[my_static_file]
type = tcp
local_ip = 127.0.0.1
remote_port = 62360
plugin = static_file
plugin_local_path = F:\movie
plugin_http_user = admin
plugin_http_passwd = admin

static_file 插件参数详解

plugin = static_file
为开启插件static_file模式
plugin_local_path
文件目录的绝对路径,注意不能含中文
plugin_http_user
为http访问验证的用户名,可自定义,可添加此参数或不添加。
plugin_http_passwd
为http访问验证的密码,可自定义,可添加此参数或不添加。

访问方式:
服务器地址:remote_port
本例中为freenat.bid:62360

Last modification:December 2nd, 2018 at 08:46 am
If you think my article is useful to you, please feel free to appreciate

Leave a Comment