通过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
站点名称:Sword's Blog 杂货屋
本文链接:https://sword.studio/61.html
本博客所有文章除特别声明外,均采用知识共享署名-非商业性使用 4.0 国际许可协议 进行许可
您可以自由的转载和修改,但请务必注明文章来源并且不可用于商业目的