|
@@ -1,3 +1,5 @@
|
|
|
|
+# This configuration file is for reference only. Please do not use this configuration directly to run the program as it may have various issues.
|
|
|
|
+
|
|
# your proxy name will be changed to {user}.{proxy}
|
|
# your proxy name will be changed to {user}.{proxy}
|
|
user = "your_name"
|
|
user = "your_name"
|
|
|
|
|
|
@@ -36,7 +38,7 @@ auth.token = "12345678"
|
|
# auth.oidc.clientSecret = ""
|
|
# auth.oidc.clientSecret = ""
|
|
# oidc.audience specifies the audience of the token in OIDC authentication.
|
|
# oidc.audience specifies the audience of the token in OIDC authentication.
|
|
# auth.oidc.audience = ""
|
|
# auth.oidc.audience = ""
|
|
-# oidc_scope specifies the permisssions of the token in OIDC authentication if AuthenticationMethod == "oidc". By default, this value is "".
|
|
|
|
|
|
+# oidc.scope specifies the permisssions of the token in OIDC authentication if AuthenticationMethod == "oidc". By default, this value is "".
|
|
# auth.oidc.scope = ""
|
|
# auth.oidc.scope = ""
|
|
# oidc.tokenEndpointURL specifies the URL which implements OIDC Token Endpoint.
|
|
# oidc.tokenEndpointURL specifies the URL which implements OIDC Token Endpoint.
|
|
# It will be used to get an OIDC token.
|
|
# It will be used to get an OIDC token.
|
|
@@ -110,7 +112,7 @@ transport.tls.enable = true
|
|
# transport.tls.disableCustomTLSFirstByte = true
|
|
# transport.tls.disableCustomTLSFirstByte = true
|
|
|
|
|
|
# Heartbeat configure, it's not recommended to modify the default value.
|
|
# Heartbeat configure, it's not recommended to modify the default value.
|
|
-# The default value of heartbeat_interval is 10 and heartbeat_timeout is 90. Set negative value
|
|
|
|
|
|
+# The default value of heartbeatInterval is 10 and heartbeatTimeout is 90. Set negative value
|
|
# to disable it.
|
|
# to disable it.
|
|
# transport.heartbeatInterval = 30
|
|
# transport.heartbeatInterval = 30
|
|
# transport.heartbeatTimeout = 90
|
|
# transport.heartbeatTimeout = 90
|
|
@@ -173,7 +175,7 @@ name = "ssh_random"
|
|
type = "tcp"
|
|
type = "tcp"
|
|
localIP = "192.168.31.100"
|
|
localIP = "192.168.31.100"
|
|
localPort = 22
|
|
localPort = 22
|
|
-# If remote_port is 0, frps will assign a random port for you
|
|
|
|
|
|
+# If remotePort is 0, frps will assign a random port for you
|
|
remotePort = 0
|
|
remotePort = 0
|
|
|
|
|
|
[[proxies]]
|
|
[[proxies]]
|
|
@@ -183,14 +185,14 @@ localIP = "114.114.114.114"
|
|
localPort = 53
|
|
localPort = 53
|
|
remotePort = 6002
|
|
remotePort = 6002
|
|
|
|
|
|
-# Resolve your domain names to [server_addr] so you can use http://web01.yourdomain.com to browse web01 and http://web02.yourdomain.com to browse web02
|
|
|
|
|
|
+# Resolve your domain names to [serverAddr] so you can use http://web01.yourdomain.com to browse web01 and http://web02.yourdomain.com to browse web02
|
|
[[proxies]]
|
|
[[proxies]]
|
|
name = "web01"
|
|
name = "web01"
|
|
type = "http"
|
|
type = "http"
|
|
localIP = "127.0.0.1"
|
|
localIP = "127.0.0.1"
|
|
localPort = 80
|
|
localPort = 80
|
|
# http username and password are safety certification for http protocol
|
|
# http username and password are safety certification for http protocol
|
|
-# if not set, you can access this custom_domains without certification
|
|
|
|
|
|
+# if not set, you can access this customDomains without certification
|
|
httpUser = "admin"
|
|
httpUser = "admin"
|
|
httpPassword = "admin"
|
|
httpPassword = "admin"
|
|
# if domain for frps is frps.com, then you can access [web01] proxy by URL http://web01.frps.com
|
|
# if domain for frps is frps.com, then you can access [web01] proxy by URL http://web01.frps.com
|
|
@@ -199,9 +201,8 @@ customDomains = ["web01.yourdomain.com"]
|
|
# locations is only available for http type
|
|
# locations is only available for http type
|
|
locations = ["/", "/pic"]
|
|
locations = ["/", "/pic"]
|
|
# route requests to this service if http basic auto user is abc
|
|
# route requests to this service if http basic auto user is abc
|
|
-# route_by_http_user = abc
|
|
|
|
|
|
+# routeByHTTPUser = abc
|
|
hostHeaderRewrite = "example.com"
|
|
hostHeaderRewrite = "example.com"
|
|
-# params with prefix "header_" will be used to update http request headers
|
|
|
|
requestHeaders.set.x-from-where = "frp"
|
|
requestHeaders.set.x-from-where = "frp"
|
|
healthCheck.type = "http"
|
|
healthCheck.type = "http"
|
|
# frpc will send a GET http request '/status' to local http service
|
|
# frpc will send a GET http request '/status' to local http service
|
|
@@ -235,7 +236,7 @@ customDomains = ["tunnel1"]
|
|
name = "plugin_unix_domain_socket"
|
|
name = "plugin_unix_domain_socket"
|
|
type = "tcp"
|
|
type = "tcp"
|
|
remotePort = 6003
|
|
remotePort = 6003
|
|
-# if plugin is defined, local_ip and local_port is useless
|
|
|
|
|
|
+# if plugin is defined, localIP and localPort is useless
|
|
# plugin will handle connections got from frps
|
|
# plugin will handle connections got from frps
|
|
[proxies.plugin]
|
|
[proxies.plugin]
|
|
type = "unix_domain_socket"
|
|
type = "unix_domain_socket"
|
|
@@ -306,7 +307,7 @@ requestHeaders.set.x-from-where = "frp"
|
|
|
|
|
|
[[proxies]]
|
|
[[proxies]]
|
|
name = "secret_tcp"
|
|
name = "secret_tcp"
|
|
-# If the type is secret tcp, remote_port is useless
|
|
|
|
|
|
+# If the type is secret tcp, remotePort is useless
|
|
# Who want to connect local port should deploy another frpc with stcp proxy and role is visitor
|
|
# Who want to connect local port should deploy another frpc with stcp proxy and role is visitor
|
|
type = "stcp"
|
|
type = "stcp"
|
|
# secretKey is used for authentication for visitors
|
|
# secretKey is used for authentication for visitors
|
|
@@ -353,7 +354,7 @@ bindAddr = "127.0.0.1"
|
|
bindPort = 9001
|
|
bindPort = 9001
|
|
# when automatic tunnel persistence is required, set it to true
|
|
# when automatic tunnel persistence is required, set it to true
|
|
keepTunnelOpen = false
|
|
keepTunnelOpen = false
|
|
-# effective when keep_tunnel_open is set to true, the number of attempts to punch through per hour
|
|
|
|
|
|
+# effective when keepTunnelOpen is set to true, the number of attempts to punch through per hour
|
|
maxRetriesAnHour = 8
|
|
maxRetriesAnHour = 8
|
|
minRetryInterval = 90
|
|
minRetryInterval = 90
|
|
# fallbackTo = "stcp_visitor"
|
|
# fallbackTo = "stcp_visitor"
|