码迷,mamicode.com
首页 > 其他好文 > 详细

二、frps 完整配置文件

时间:2018-03-05 15:34:38      阅读:1347      评论:0      收藏:0      [点我收藏+]

标签:div   available   配置文件   dmi   span   each   rect   ace   def   

 

# [common] is integral section
[common]
# A literal address or host name for IPv6 must be enclosed
# in square brackets, as in "[::1]:80", "[ipv6-host]:http" or "[ipv6-host%zone]:80"
bind_addr = 0.0.0.0 # 监听的主机端口,默认:0.0.0.0,可以使用域名
bind_port = 7000    # 监听的默认端口,可以改,需防火墙放行

# udp port to help make udp hole to penetrate nat
bind_udp_port = 7001 # 监听的UDP默认端口,可以改,需防火墙放行

# udp port used for kcp protocol, it can be same with bind_port
# if not set, kcp is disabled in frps
kcp_bind_port = 7000 # 监听的KDP默认端口,可以改,需防火墙放行

# specify which address proxy will listen for, default value is same with bind_addr
# proxy_bind_addr = 127.0.0.1

# if you want to support virtual host, you must set the http port for listening (optional)
vhost_http_port = 80  # 监听的http服务端口
vhost_https_port = 443 # 监听的https服务端口

# set dashboard_addr and dashboard_port to view dashboard of frps
# dashboard_addrs default value is same with bind_addr
# dashboard is available only if dashboard_port is set
dashboard_addr = 0.0.0.0  # Dashboard监控地址
dashboard_port = 7500  # Dashboard监控端口

# dashboard user and pwd for basic auth protect, if not set, both default value is admin
dashboard_user = admin # Dashboard账号
dashboard_pwd = admin  #Dashboard密码

# dashboard assets directory(only for debug mode)
# assets_dir = ./static
# console or real logFile path like ./frps.log
log_file = ./frps.log # 日志文件存放路径

# trace, debug, info, warn, error
log_level = info  # 日志等级

log_max_days = 3  # 日志保存天数

# privilege mode is the only supported mode since v0.10.0
privilege_token = 12345678 # 安全验证,客户端需与服务端的此参数保持一致

# heartbeat configure, its not recommended to modify the default value
# the default value of heartbeat_timeout is 90
# heartbeat_timeout = 90

# only allow frpc to bind ports you list, if you set nothing, there wont be any limit
privilege_allow_ports = 2000-3000,3001,3003,4000-50000  # 服务端可以使用的端口,防火墙需放行,若服务端设置该参数,则客户端使用的端口需在此范围内
 
# pool_count in each proxy will change to max_pool_count if they exceed the maximum value
max_pool_count = 5  # 连接池的最大数量

# max ports can be used for each client, default value is 0 means no limit
max_ports_per_client = 0 # 每个客户端最大使用的端口数

# authentication_timeout means the timeout interval (seconds) when the frpc connects frps
# if authentication_timeout is zero, the time is not verified, default is 900s
authentication_timeout = 900  # 安全验证,客户端时间与服务端时间相差不能超过改参数,单位秒

# if subdomain_host is not empty, you can set subdomain when type is http or https in frpcs configure file
# when subdomain is test, the host used by routing is test.frps.com
subdomain_host = frps.com  # 二级域名

# if tcp stream multiplexing is used, default is true
tcp_mux = true # tcp流复用

 

 

二、frps 完整配置文件

标签:div   available   配置文件   dmi   span   each   rect   ace   def   

原文地址:https://www.cnblogs.com/sanduzxcvbnm/p/8508871.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!