docs: Update root, reverse_proxy, and shorthand placeholders

This commit is contained in:
Matthew Holt 2020-02-04 13:33:48 -07:00
parent 3c6202c15d
commit 2abf8549a7
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5
3 changed files with 26 additions and 12 deletions

View file

@ -163,3 +163,14 @@ reverse_proxy /api/* node1:80 node2:80 node3:80 {
lb_policy header X-My-Header
}
```
Preserve original request Host and add common proxying headers:
```
reverse_proxy localhost:9000 {
header_up Host {host}
header_up X-Real-IP {remote_host}
header_up X-Forwarded-For {remote_host}
header_up X-Forwarded-Proto {scheme}
}
```