Agent Configuration
frp Agent A detailed Configuration description of.
ProxyBaseConfig
Field |
Type |
Description |
Required |
name |
string |
Agent Name. |
Yes |
type |
string |
Agent Type, optional values are tcp, udp, http, https,
tcpmux, stcp, sudp, xtcp。
|
Yes |
transport |
ProxyTransport
|
Agent Network layer Configuration.
|
No |
metadatas |
map[string]string |
Additional metadata, which is passed to Server side
Plug-in to provide additional capabilities.
|
No |
loadBalancer |
LoadBalancerConfig
|
Load balancer Configuration.
|
No |
healthCheck |
HealthCheckConfig
|
Health check Configuration.
|
No |
|
ProxyBackend
|
Agent Backend service Configuration.
|
Yes |
ProxyTransport
Field |
Type |
Description |
Required |
useEncryption |
bool |
Whether to enable the encryption function, after
enabling the Agent and Server side. All communications
between them will be encrypted if global is enabled by
frpc. TLS, you no longer need to enable this parameter.
|
No |
useCompression |
bool |
Whether to enable the compression function, after
enabling the Agent and Server side. The content of
communication between them will be compressed and
transmitted.
|
No |
bandwidthLimit |
string |
Set the bandwidth limit for a single proxy (in MB or
KB,0). Means there is no limit. If enabled, the default
will be applied to the corresponding frpc.
|
No |
bandwidthLimitMode |
string |
Current limit type, Client current limit or Server side
current limit. Available value is client. And server,
the default is Client current limit.
|
No |
proxyProtocolVersion |
string |
Enable the version of the proxy protocol protocol,
optional values are v1 and. V2 . If enabled, proxy will
be sent after the frpc and the local service establish a
connection. The protocol of protocol, including the IP
address and port of the original request.
|
No |
ProxyBackend
Field |
Type |
Description |
Required |
localIP |
string |
The local service IP that is Agent defaults to
127.0.0.1.
|
No |
localPort |
int |
The local Server side port of Agent.
|
No |
plugin |
ClientPluginOptions
|
ClientPlug in Configuration, if ClientPlug in is
enabled, Configuration is not required LocalIP and
LocalPort, the traffic will be taken over by ClientPlug
in. Different Plug in types correspond to different
configurations, for example HTTPProxyPluginOptions.
|
No |
LoadBalancerConfig
Field |
Type |
Description |
Required |
group |
string |
Load balancer packet name, and the user request will be sent to the same user by polling.
Agent in group.
|
Yes |
groupKey |
string |
Cloud load balancer packet key, which is used to
authenticate the load balancer packet, groupKey. The
same Agent will be added to the same group.
|
No |
HealthCheckConfig
Field |
Type |
Description |
Required |
type |
string |
Health check type. Available values are tcp and. Enable
health check function after http,Configuration, tcp. If
the connection is successful, the service is considered
healthy. Http requires the API to return 2xx. The status
code is considered to serve the health.
|
Yes |
timeoutSeconds |
int |
The health check timeout (seconds), which defaults to 3
seconds.
|
No |
maxFailed |
int |
The number of consecutive errors in health check, and
how many consecutive errors are considered to be
unhealthy service. Default is. one.
|
No |
intervalSeconds |
int |
Health check-up cycle (seconds). How often do you have a health check? default is.
10s .
|
No |
path |
string |
The HTTP interface for health check, if the health check type is.
Http, the parameter Configuration is required to specify the.
Path, for example
/health 。
|
No |
DomainConfig
Field |
Type |
Description |
Required |
customDomains |
[]string |
Customize the list of domain names. |
No |
subdomain |
string |
Subdomain name. |
No |
TCPProxyConfig
Field |
Type |
Description |
Required |
|
ProxyBaseConfig
|
Basic Configuration. |
Yes |
remotePort |
int |
Port bound by Server side, and user accesses Server side.
Traffic from this port is forwarded to the corresponding local service.
|
No |
UDPProxyConfig
Field |
Type |
Description |
Required |
|
ProxyBaseConfig
|
Basic Configuration. |
Yes |
remotePort |
int |
Port bound by Server side, and user accesses Server side.
Traffic from this port is forwarded to the corresponding local service.
|
No |
HTTPProxyConfig
Field |
Type |
Description |
Required |
|
ProxyBaseConfig
|
Basics Configuration。 |
Yes |
|
DomainConfig
|
Domain name Configuration. |
Yes |
locations |
[]string |
URL RoutinConfiguration。
|
No |
httpUser |
string |
HTTP Basic Auth User name. |
No |
httpPassword |
string |
HTTP Basic Auth Password. |
No |
hostHeaderRewrite |
string |
Replace Host Header。 |
No |
requestHeaders |
HeaderOperations
|
The operation Configuration for the request Header.
|
No |
routeByHTTPUser |
string |
According to HTTP Basic Auth user Routin。
|
No |
HTTPSProxyConfig
TCPMuxProxyConfig
Field |
Type |
Description |
Required |
|
ProxyBaseConfig
|
Basic Configuration. |
Yes |
|
DomainConfig
|
Domain name Configuration. |
Yes |
httpUser |
string |
User name, if Configuration this parameter, through HTTP CONNECT.
Proxy-Authorization is required to establish a connection.
Attach the correct identity information.
|
No |
httpPassword |
string |
Password |
No |
routeByHTTPUser |
string |
According to HTTP Basic Auth user Routin。
|
No |
multiplexer |
string |
Multiplexer type, currently only supported httpconnect。
|
No |
STCPProxyConfig
Field |
Type |
Description |
Required |
|
ProxyBaseConfig
|
Basic Configuration. |
Yes |
secretKey |
string |
Key, Server side.
The key of the access side needs to be consistent with that of the access side before the access
side can access the Server side.
|
No |
allowUsers |
[]string |
List of visitor users allowed to access. By default, only those under the same user are allowed.
Visitor access. If Configuration is *, any visitor is allowed.
Visit.
|
No |
XTCPProxyConfig
Field |
Type |
Description |
Required |
|
ProxyBaseConfig
|
Basic Configuration. |
Yes |
secretKey |
string |
Key, Server side.
The key of the access side needs to be consistent with that of the access side before the access
side can access the Server side.
|
No |
allowUsers |
[]string |
List of visitor users allowed to access. By default, only those under the same user are allowed.
Visitor access. If Configuration is *, any visitor is allowed.
Visit.
|
No |
SUDPProxyConfig
Field |
Type |
Description |
Required |
|
ProxyBaseConfig
|
Basic Configuration. |
Yes |
secretKey |
string |
Key, Server side.
The key of the access side needs to be consistent with that of the access side before the access
side can access the Server side.
|
No |
allowUsers |
[]string |
List of visitor users allowed to access. By default, only those under the same user are allowed.
Visitor access. If Configuration is *, any visitor is allowed.
Visit.
|
No |
Last modified November 15, 2023:
fix 404 (#71) (626ce4d)