最近研究frp,看到了仓库中的完全配置文件有一些没有翻译的完全配置文件
文字量不大,顺手翻译了一下. 也许会跟进更新

这是一篇对于 frp 仓库中的 frps_full.ini 以及 frpc_full.ini 的注释部分的翻译

最后更新于:2020.02.21
更新时最新版本:v0.31.2

源地址:


frps_full.ini 部分

frps_full.ini 翻译版本(对于注释部分)

# [common] 是不可缺的部分
[common]
# IPv6必须包含文本地址或主机名
# 须在方括号内, 例如 "[::1]:80", "[ipv6-host]:http" 或者 "[ipv6-host%zone]:80"
bind_addr = 0.0.0.0
bind_port = 7000

# udp端口来帮助udp数据穿透nat
bind_udp_port = 7001

# 用于kcp协议的udp端口,它可以与 'bind_port' 相同
# 如果未设置,则在frps中禁用kcp
kcp_bind_port = 7000

# 指定要监听哪个地址代理,默认值与bind_addr相同
# proxy_bind_addr = 127.0.0.1

# 如果希望支持虚拟主机,必须设置http端口以监听(可选)
# 注意:http端口和https端口可以与 'bind_port' 相同
vhost_http_port = 80
vhost_https_port = 443

# 对于vhost http服务器的ponse报头超时(秒),默认为60秒
# vhost_http_timeout = 60

# 设置 dashboard_addr 和 dashboard_port 来查看frps的仪表板
# dashboard_addr的默认值与bind_addr相同
# 只有设置了dashboard_port,仪表盘才可用
dashboard_addr = 0.0.0.0
dashboard_port = 7500

# dashboard_user 用户和 dashboard_pwd 为基础身份保护,如果不设置,默认值都是admin
dashboard_user = admin
dashboard_pwd = admin

# 指示板资产目录(仅用于调试模式)
# assets_dir = ./static
# 控制台或实际日志文件路径例如 ./frps.log
log_file = ./frps.log

# 跟踪(trace), 调试(debug), 信息(info), 警告(warn), 错误(error)
log_level = info

log_max_days = 3

# 当 log_file 为控制台(console)时禁用日志颜色,默认为false
disable_log_color = false

# 身份验证令牌
token = 12345678

# 心跳配置,不建议修改默认值
# heartbeat_timeout的默认值是90
# heartbeat_timeout = 90

# 只允许frpc绑定你列出的端口,如果你不设置,则没有限制
allow_ports = 2000-3000,3001,3003,4000-50000

# 如果每个代理中的 pool_count 超过最大值,则将更改为 max_pool_count
max_pool_count = 5

# 最大端口可用于每个客户端,默认值为0表示没有限制
max_ports_per_client = 0

# 如果subdomain_host不是空的,您可以在frpc的配置文件中设置类型为http或https的子域
# 当子域为 test 时,路由使用的主机为 test.frps.com
subdomain_host = frps.com

# 如果需要使用tcp流多路复用,默认值为true
tcp_mux = true

# custom 404 page for HTTP requests
# custom_404_page = /path/to/404.html

[plugin.user-manager]
addr = 127.0.0.1:9000
path = /handler
ops = Login

[plugin.port-manager]
addr = 127.0.0.1:9001
path = /handler
ops = NewProxy

frps_full.ini 英文原版

# [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
bind_port = 7000

# udp port to help make udp hole to penetrate nat
bind_udp_port = 7001

# 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

# 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)
# Note: http port and https port can be same with bind_port
vhost_http_port = 80
vhost_https_port = 443

# response header timeout(seconds) for vhost http server, default is 60s
# vhost_http_timeout = 60

# set dashboard_addr and dashboard_port to view dashboard of frps
# dashboard_addr's default value is same with bind_addr
# dashboard is available only if dashboard_port is set
dashboard_addr = 0.0.0.0
dashboard_port = 7500

# dashboard user and passwd for basic auth protect, if not set, both default value is admin
dashboard_user = admin
dashboard_pwd = admin

# 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

# disable log colors when log_file is console, default is false
disable_log_color = false

# auth token
token = 12345678

# heartbeat configure, it's 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 won't be any limit
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

# if subdomain_host is not empty, you can set subdomain when type is http or https in frpc's 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

# custom 404 page for HTTP requests
# custom_404_page = /path/to/404.html

[plugin.user-manager]
addr = 127.0.0.1:9000
path = /handler
ops = Login

[plugin.port-manager]
addr = 127.0.0.1:9001
path = /handler
ops = NewProxy


frps_full.ini 部分

尚未更新

Last modification:February 21st, 2020 at 02:02 pm
会是风雨过后,波澜不惊