|
@@ -35,6 +35,7 @@ frp is a fast reverse proxy to help you expose a local server behind a NAT or fi
|
|
|
* [TCP Stream Multiplexing](#tcp-stream-multiplexing)
|
|
|
* [Support KCP Protocol](#support-kcp-protocol)
|
|
|
* [Connection Pool](#connection-pool)
|
|
|
+ * [Load balancing](#load-balancing)
|
|
|
* [Rewriting the Host Header](#rewriting-the-host-header)
|
|
|
* [Set Headers In HTTP Request](#set-headers-in-http-request)
|
|
|
* [Get Real IP](#get-real-ip)
|
|
@@ -484,6 +485,32 @@ This feature is fit for a large number of short connections.
|
|
|
pool_count = 1
|
|
|
```
|
|
|
|
|
|
+### Load balancing
|
|
|
+
|
|
|
+Load balancing is supported by `group`.
|
|
|
+This feature is available only for type `tcp` now.
|
|
|
+
|
|
|
+```ini
|
|
|
+# frpc.ini
|
|
|
+[test1]
|
|
|
+type = tcp
|
|
|
+local_port = 8080
|
|
|
+remote_port = 80
|
|
|
+group = web
|
|
|
+group_key = 123
|
|
|
+
|
|
|
+[test2]
|
|
|
+type = tcp
|
|
|
+local_port = 8081
|
|
|
+remote_port = 80
|
|
|
+group = web
|
|
|
+group_key = 123
|
|
|
+```
|
|
|
+
|
|
|
+`group_key` is used for authentication.
|
|
|
+
|
|
|
+Proxies in same group will accept connections from port 80 randomly.
|
|
|
+
|
|
|
### Rewriting the Host Header
|
|
|
|
|
|
When forwarding to a local port, frp does not modify the tunneled HTTP requests at all, they are copied to your server byte-for-byte as they are received. Some application servers use the Host header for determining which development site to display. For this reason, frp can rewrite your requests with a modified host header. Use the `host_header_rewrite` switch to rewrite incoming HTTP requests.
|
|
@@ -644,7 +671,6 @@ plugin_http_passwd = abc
|
|
|
|
|
|
* Log http request information in frps.
|
|
|
* Direct reverse proxy, like haproxy.
|
|
|
-* Load balance to different service in frpc.
|
|
|
* kubernetes ingress support.
|
|
|
|
|
|
## Contributing
|