Skip to content

Instantly share code, notes, and snippets.

@imfing
Created February 21, 2019 03:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imfing/2c03382af016067efbfe458545cfb25d to your computer and use it in GitHub Desktop.
Save imfing/2c03382af016067efbfe458545cfb25d to your computer and use it in GitHub Desktop.
frp configuration
# 指定服务端参数
[common]
server_addr = 115.159.0.167
server_port = 7000
# ssh端口设置
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 7002
# 文件服务
[test_static_file]
type = tcp
remote_port = 7003
plugin = static_file
# 要对外暴露的文件目录
plugin_local_path = /home/user/test/Downloads/share
# 访问 url 中会被去除的前缀,保留的内容即为要访问的文件路径
plugin_strip_prefix = file
[web]
type = http
local_port = 8085
custom_domains = test1.nat.example.com
[web02]
type = http
local_port = 8086
custom_domains = test2.nat.example.com
[common]
bind_port = 7000
vhost_http_port = 8080
privilege_allow_ports = 2000-3000,3001,3003,4000-50000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment