Add the pass host header section to the services documentation

This commit is contained in:
Jean-Baptiste Doumenjou 2019-09-30 11:26:06 +02:00 committed by Traefiker Bot
parent 4c5250e850
commit 211fa18ac2
4 changed files with 31 additions and 3 deletions

View file

@ -322,6 +322,31 @@ Below are the available options for the health check mechanism:
My-Header: bar
```
#### Pass Host Header
The `passHostHeader` allows to forward client Host header to server.
By default, `passHostHeader` is true.
??? example "Don't forward the host header -- Using the [File Provider](../../providers/file.md)"
```toml tab="TOML"
## Dynamic configuration
[http.services]
[http.services.Service01]
[http.services.Service01.loadBalancer]
passHostHeader = false
```
```yaml tab="YAML"
## Dynamic configuration
http:
services:
Service01:
loadBalancer:
passHostHeader: false
```
### Weighted Round Robin (service)
The WRR is able to load balance the requests between multiple services based on weights.