From 8e7881094f1d8fe20a95855f74b6d5028e5b9f00 Mon Sep 17 00:00:00 2001 From: Aaron Raff Date: Thu, 16 Sep 2021 05:18:12 -0400 Subject: [PATCH] docs: add default proxy headers --- docs/content/getting-started/faq.md | 17 ++++++++++++++++- docs/content/middlewares/http/headers.md | 2 ++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/docs/content/getting-started/faq.md b/docs/content/getting-started/faq.md index 74ad989bf..4bb9b2fec 100644 --- a/docs/content/getting-started/faq.md +++ b/docs/content/getting-started/faq.md @@ -125,7 +125,7 @@ http: the principle of the above example above (a catchall router) still stands, but the `unavailable` service should be adapted to fit such a need. -## Why Is My TLS Certificate Not Reloaded When Its Contents Change ? +## Why Is My TLS Certificate Not Reloaded When Its Contents Change? With the file provider, a configuration update is only triggered when one of the [watched](../providers/file.md#provider-configuration) configuration files is modified. @@ -137,3 +137,18 @@ a configuration update is _not_ triggered. To take into account the new certificate contents, the update of the dynamic configuration must be forced. One way to achieve that, is to trigger a file notification, for example, by using the `touch` command on the configuration file. + +## What Are the Forwarded Headers When Proxying HTTP Requests? + +By default, the following headers are automatically added when proxying requests: + +| Property | HTTP Header | +|---------------------------|----------------------------| +| Client's IP | X-Forwarded-For, X-Real-Ip | +| Host | X-Forwarded-Host | +| Port | X-Forwarded-Port | +| Protocol | X-Forwarded-Proto | +| Proxy Server's Hostname | X-Forwarded-Server | + +For more details, +please check out the [forwarded header](../routing/entrypoints.md#forwarded-headers) documentation. diff --git a/docs/content/middlewares/http/headers.md b/docs/content/middlewares/http/headers.md index db7620617..a728ced1c 100644 --- a/docs/content/middlewares/http/headers.md +++ b/docs/content/middlewares/http/headers.md @@ -7,6 +7,8 @@ Managing Request/Response headers The Headers middleware manages the headers of requests and responses. +A set of forwarded headers are automatically added by default. See the [FAQ](../../getting-started/faq.md#what-are-the-forwarded-headers-when-proxying-http-requests) for more information. + ## Configuration Examples ### Adding Headers to the Request and the Response