[GH-ISSUE #1734] 静态文件插件如何同时使用xtcp p2p穿透模式 #1371

Closed
opened 2026-05-05 12:52:11 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @carlsue on GitHub (Apr 7, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1734

按照官方文档,这里必修指定服务器的远程端口,这个是正常的服务器转发模式,请问如何在使用p2p模式下使用静态文件插件?

frpc.ini

[common]
server_addr = x.x.x.x
server_port = 7000

[test_static_file]
type = tcp
remote_port = 6000
plugin = static_file

要对外暴露的文件目录

plugin_local_path = /tmp/file

访问 url 中会被去除的前缀,保留的内容即为要访问的文件路径

plugin_strip_prefix = static
plugin_http_user = abc
plugin_http_passwd = abc

Originally created by @carlsue on GitHub (Apr 7, 2020). Original GitHub issue: https://github.com/fatedier/frp/issues/1734 按照官方文档,这里必修指定服务器的远程端口,这个是正常的服务器转发模式,请问如何在使用p2p模式下使用静态文件插件? # frpc.ini [common] server_addr = x.x.x.x server_port = 7000 [test_static_file] type = tcp remote_port = 6000 plugin = static_file # 要对外暴露的文件目录 plugin_local_path = /tmp/file # 访问 url 中会被去除的前缀,保留的内容即为要访问的文件路径 plugin_strip_prefix = static plugin_http_user = abc plugin_http_passwd = abc
Author
Owner

@fatedier commented on GitHub (Apr 8, 2020):

结合以下两个文档配置。

点对点内网穿透
客户端插件

<!-- gh-comment-id:610836304 --> @fatedier commented on GitHub (Apr 8, 2020): 结合以下两个文档配置。 [点对点内网穿透](https://github.com/fatedier/frp/blob/master/README_zh.md#%E7%82%B9%E5%AF%B9%E7%82%B9%E5%86%85%E7%BD%91%E7%A9%BF%E9%80%8F) [客户端插件](https://github.com/fatedier/frp/blob/master/README_zh.md#%E5%AE%A2%E6%88%B7%E7%AB%AF%E6%8F%92%E4%BB%B6)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#1371
No description provided.