Skip to content

Commit aa017b6

Browse files
authored
LB: document proxy_protocol_from and external_sources (#306)
1 parent 677e458 commit aa017b6

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

docs/network/load_balancer.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,21 @@ Routing rules that define how traffic is handled:
123123
"protocol": "http",
124124
"port": 80,
125125
"domains": ["example.com", "www.example.com"],
126+
}
127+
```
128+
129+
#### External sources
130+
131+
You may use external sources to forward traffic from LB to remote systems (use proxy_protocol_from to enable the PROXY protocol and pass the real client IP to the backend; Nginx will be started on the remote system):
132+
133+
```json
134+
{
135+
"name": "web-vhost",
136+
"description": "Web server vhost",
137+
"protocol": "http",
138+
"port": 80,
139+
"domains": ["example.com", "www.example.com"],
140+
"proxy_protocol_from": "127.0.0.1/32",
126141
"external_sources": [
127142
{
128143
"kind": "ssh_forward",
@@ -135,9 +150,9 @@ Routing rules that define how traffic is handled:
135150
}
136151
```
137152

138-
#### External sources requirements
153+
##### Requirements
139154

140-
##### SSH
155+
###### SSH
141156

142157
Tested on Ubuntu 24, prepare remote system:
143158

0 commit comments

Comments
 (0)