mirror of https://github.com/fatedier/frp.git
102 lines
1.7 KiB
INI
102 lines
1.7 KiB
INI
[common]
|
|
server_addr = 0.0.0.0
|
|
server_port = 10700
|
|
log_file = ./frpc.log
|
|
# debug, info, warn, error
|
|
log_level = debug
|
|
privilege_token = 123456
|
|
|
|
[tcp_normal]
|
|
type = tcp
|
|
local_ip = 127.0.0.1
|
|
local_port = 10701
|
|
remote_port = 10801
|
|
|
|
[tcp_ec]
|
|
type = tcp
|
|
local_ip = 127.0.0.1
|
|
local_port = 10701
|
|
remote_port = 10901
|
|
use_encryption = true
|
|
use_compression = true
|
|
|
|
[udp_normal]
|
|
type = udp
|
|
local_ip = 127.0.0.1
|
|
local_port = 10702
|
|
remote_port = 10802
|
|
|
|
[udp_ec]
|
|
type = udp
|
|
local_ip = 127.0.0.1
|
|
local_port = 10702
|
|
remote_port = 10902
|
|
use_encryption = true
|
|
use_compression = true
|
|
|
|
[unix_domain]
|
|
type = tcp
|
|
remote_port = 10803
|
|
plugin = unix_domain_socket
|
|
plugin_unix_path = /tmp/frp_echo_server.sock
|
|
|
|
[stcp]
|
|
type = stcp
|
|
sk = abcdefg
|
|
local_ip = 127.0.0.1
|
|
local_port = 10701
|
|
|
|
[stcp_ec]
|
|
type = stcp
|
|
sk = abc
|
|
local_ip = 127.0.0.1
|
|
local_port = 10701
|
|
use_encryption = true
|
|
use_compression = true
|
|
|
|
[web01]
|
|
type = http
|
|
local_ip = 127.0.0.1
|
|
local_port = 10704
|
|
custom_domains = 127.0.0.1
|
|
|
|
[web02]
|
|
type = http
|
|
local_ip = 127.0.0.1
|
|
local_port = 10704
|
|
custom_domains = test2.frp.com
|
|
host_header_rewrite = test2.frp.com
|
|
use_encryption = true
|
|
use_compression = true
|
|
|
|
[web03]
|
|
type = http
|
|
local_ip = 127.0.0.1
|
|
local_port = 10704
|
|
custom_domains = test3.frp.com
|
|
use_encryption = true
|
|
use_compression = true
|
|
host_header_rewrite = test3.frp.com
|
|
locations = /,/foo
|
|
|
|
[web04]
|
|
type = http
|
|
local_ip = 127.0.0.1
|
|
local_port = 10704
|
|
custom_domains = test3.frp.com
|
|
use_encryption = true
|
|
use_compression = true
|
|
host_header_rewrite = test3.frp.com
|
|
locations = /bar
|
|
|
|
[web05]
|
|
type = http
|
|
local_ip = 127.0.0.1
|
|
local_port = 10704
|
|
custom_domains = test5.frp.com
|
|
host_header_rewrite = test5.frp.com
|
|
use_encryption = true
|
|
use_compression = true
|
|
http_user = test
|
|
http_user = test
|