frps,frpc服务配置模板-带中文注释

frps服务端配置-注释
[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"
# For single "bind_addr" field, no need square brackets, like "bind_addr = ::".
# frp服务绑定的本地地址IP或域名
bind_addr = 0.0.0.0
# frp服务绑定的端口号
bind_port = 7000

# udp port to help make udp hole to penetrate nat
# udp服务绑定的端口号
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服务绑定的端口号
kcp_bind_port = 7000

# specify which address proxy will listen for, default value is same with bind_addr
# 指定代理将侦听的地址,默认值与bind\u 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
# #如果要支持虚拟主机,必须设置用于侦听的http端口(可选)
#注意:http端口和https端口可以与bind\ U端口相同
vhost_http_port = 80
vhost_https_port = 443

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

# tcpmux_httpconnect_port specifies the port that the server listens for TCP
# HTTP CONNECT requests. If the value is 0, the server will not multiplex TCP
# requests on one single port. If it's not - it will listen on this value for
# HTTP CONNECT requests. By default, this value is 0.
# tcpmux_httpconnect_port = 1337

# set dashboard_addr and dashboard_port to view dashboard of frps
# 设置仪表板地址和仪表板端口以查看FRP的仪表板
# 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和passwd for basic auth protect,如果未设置,则默认值均为admin
dashboard_user = admin
dashboard_pwd = admin

# enable_prometheus will export prometheus metrics on {dashboard_addr}:{dashboard_port} in /metrics api.
# enable\u prometheus将在/metrics-api中的{dashboard\u addr}:{dashboard\u port}上导出prometheus度量。
enable_prometheus = true

# dashboard assets directory(only for debug mode)
# 仪表板资源目录(仅用于调试模式)
# assets_dir = ./static

# console or real logFile path like ./frps.log
# log_file = ./Logs/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
# 当日志文件为控制台时禁用日志颜色,默认值为false
disable_log_color = false

# DetailedErrorsToClient defines whether to send the specific error (with debug info) to frpc. By default, this value is true.
# DetailedErrorsToClient定义是否将特定错误(带有调试信息)发送到frpc。默认情况下,此值为true。
detailed_errors_to_client = true

# authentication_method specifies what authentication method to use authenticate frpc with frps.
# If "token" is specified - token will be read into login message.
# If "oidc" is specified - OIDC (Open ID Connect) token will be issued using OIDC settings. By default, this value is "token".
# authentication\u method指定使用什么身份验证方法对frpc和frps进行身份验证。
# 如果指定了“token”,则会将token读入登录消息。
# 如果指定了“oidc”-将使用oidc设置发出oidc(开放ID连接)令牌。默认情况下,该值为“token”。

# authentication_method = llnetk.cn

# authenticate_heartbeats specifies whether to include authentication token in heartbeats sent to frps. By default, this value is false.
# authenticate\u heartbeats指定是否在发送到frp的心跳中包含身份验证令牌。默认情况下,此值为false。
authenticate_heartbeats = false

# AuthenticateNewWorkConns specifies whether to include authentication token in new work connections sent to frps. By default, this value is false.
# AuthenticateNewWorkConns指定是否在发送到FRP的新工作连接中包含身份验证令牌。默认情况下,此值为false
authenticate_new_work_conns = false

# auth token
token = llnetk.cn

# oidc_issuer specifies the issuer to verify OIDC tokens with.
# oidc\ U issuer指定要验证oidc令牌的颁发者
# By default, this value is "".
oidc_issuer =

# oidc_audience specifies the audience OIDC tokens should contain when validated.
# oidc\u audience指定验证时应包含的访问群体oidc令牌。
# By default, this value is "".
oidc_audience =

# oidc_skip_expiry_check specifies whether to skip checking if the OIDC token is expired.
# oidc\u skip\u expiry\u check指定在oidc令牌过期时是否跳过检查。
# By default, this value is false.
oidc_skip_expiry_check = false


# oidc_skip_issuer_check specifies whether to skip checking if the OIDC token's issuer claim matches the issuer specified in OidcIssuer.
# oidc\u skip\u issuer\u check指定如果oidc令牌的颁发者声明与OidcIssuer中指定的颁发者匹配,是否跳过检查。
# By default, this value is false.
oidc_skip_issuer_check = false

# heartbeat configure, it's not recommended to modify the default value
# the default value of heartbeat_timeout is 90

# heartbeat configure, it's not recommended to modify the default value
# the default value of heartbeat_timeout is 90
# 心跳配置,不建议修改默认值
# 心跳超时的默认值是90
# heartbeat_timeout = 90

# user_conn_timeout configure, it's not recommended to modify the default value
# the default value of user_conn_timeout is 10
# 用户连接超时配置,不建议修改默认值
# 用户连接超时的默认值是10
# user_conn_timeout = 10

# only allow frpc to bind ports you list, if you set nothing, there won't be any limit
# 只允许frpc绑定您列出的端口,如果您不设置任何内容,将不会有任何限制
# 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
# 如果超过最大值,每个代理中的池\u计数将更改为最大\u池\u计数
max_pool_count = 5

# max ports can be used for each client, default value is 0 means no limit
# 每个客户端可以使用的最大端口数,默认值为0表示没有限制
max_ports_per_client = 0

# tls_only specifies whether to only accept TLS-encrypted connections. By default, the value is false.
# tls\u only指定是否只接受tls加密的连接。默认情况下,该值为false。
tls_only = false

# tls_cert_file = server.crt
# tls_key_file = server.key
# tls_trusted_ca_file = ca.crt

# 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\u host不为空,则可以在frpc的配置文件中设置subdomain(当类型为http或https时)
# 子域为test时,路由使用的主机为test.frps.com
# 自定义二级域名
subdomain_host = frp.llnetk.cn 
# if tcp stream multiplexing is used, default is true
# 如果使用tcp流多路复用,则默认值为true
tcp_mux = true

# custom 404 page for HTTP requests
# custom_404_page = /path/to/404.html
# HTTP请求的自定义404页
# 自定义\u 404 \u page=/path/to/404.html
# specify udp packet size, unit is byte. If not set, the default value is 1500.
# This parameter should be same between client and server.
# It affects the udp and sudp proxy.
# 指定udp数据包大小,单位为字节。如果未设置,则默认值为1500。
# 此参数在客户端和服务器之间应该相同。
# 它会影响udp和sudp代理。
udp_packet_size = 1500

frpc客户端端配置-注释

[common]
# 绑定的服务端地址:IP/域名
server_addr = frp.llnet.top
# 绑定的服务端的端口
server_port = 7000

# auth token
# 鉴权码
token = llnetk.cn

# console or real logFile path like ./frpc.log
# #控制台或实际日志文件路径,如./frpc.log
#log_file = ./frpc.log
log_level = info
log_max_days = 3
# connections will be established in advance, default value is zero
# #将提前建立连接,默认值为零
pool_count = 5

# if tcp stream multiplexing is used, default is true, it must be same with frps
# #如果使用tcp流多路复用,默认值为true,则必须与frps相同
tcp_mux = true

[dsm_web01]
type = http
local_ip = 127.0.0.1
local_port = 80
use_encryption = false
use_compression = false
custom_domains = blog.llnetk.cn

[dsm_web02]
type = https
local_ip = 127.0.0.1
local_port = 443
use_encryption = false
use_compression = false
custom_domains = blog.llnetk.cn

 

© 版权声明
THE END
喜欢就支持一下吧
点赞1 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容