mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-29 04:06:54 +00:00
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:
parent
30b59ccf5f
commit
d6053287e9
@ -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/).
|
||||
|
||||
## 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.
|
||||
|
||||
```yaml
|
||||
http:
|
||||
use_x_forwarded_for: true
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user