Added header for "Reverse proxies" section (#18614)

Having a dedicated header for information on reverse proxies will aid users who may have missed the breaking change in 2021.7 (see https://github.com/home-assistant/core/pull/51839). I also put mimicked the `trusted_proxies` list from the sample config for clarity, and left comments for users who may still be unsure.
This commit is contained in:
Josh Moore 2021-07-25 21:28:22 -06:00 committed by GitHub
parent 30b59ccf5f
commit d6053287e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,13 +105,16 @@ http:
The [Set up encryption using Let's Encrypt](/blog/2015/12/13/setup-encryption-using-lets-encrypt/) blog post gives you details about the encryption of your traffic using free certificates from [Let's Encrypt](https://letsencrypt.org/). The [Set up encryption using Let's Encrypt](/blog/2015/12/13/setup-encryption-using-lets-encrypt/) blog post gives you details about the encryption of your traffic using free certificates from [Let's Encrypt](https://letsencrypt.org/).
## Reverse proxies
When using a reverse proxy, you will need to enable the `use_x_forwarded_for` and `trusted_proxies` options. Requests from reverse proxies will be blocked if these options are not set. When using a reverse proxy, you will need to enable the `use_x_forwarded_for` and `trusted_proxies` options. Requests from reverse proxies will be blocked if these options are not set.
```yaml ```yaml
http: http:
use_x_forwarded_for: true use_x_forwarded_for: true
trusted_proxies: trusted_proxies:
- 172.30.33.0/24 # Add the IP address of the proxy server - 10.0.0.200 # Add the IP address of the proxy server
- 172.30.33.0/24 # You may also provide the subnet mask
``` ```
## APIs ## APIs