Skip to content

Commit

Permalink
Incorporated "use_x_forwarded_for" to nginx docs (home-assistant#2077)
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosGS authored Jun 22, 2021
1 parent a2fec2b commit 096946d
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions nginx_proxy/DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,19 @@ The NGINX Proxy add-on is commonly used in conjunction with the [Duck DNS](https
- `ssl_certificate`
- `ssl_key`
- `server_port`
3. Change the `domain` option to the domain name you registered (from DuckDNS or any other domain you control).
4. Leave all other options as-is.
5. Save configuration.
6. Start the add-on.
7. Have some patience and wait a couple of minutes.
8. Check the add-on log output to see the result.
3. And you need to add the `trusted_proxies` section (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
```
4. In the nginx addon configuration, change the `domain` option to the domain name you registered (from DuckDNS or any other domain you control).
5. Leave all other options as-is.
6. Save configuration.
7. Start the add-on.
8. Have some patience and wait a couple of minutes.
9. Check the add-on log output to see the result.

## Configuration

Expand Down Expand Up @@ -93,4 +100,4 @@ In case you've found a bug, please [open an issue on our GitHub][issue].
[hsts]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security
[issue]: https://github.com/home-assistant/hassio-addons/issues
[reddit]: https://reddit.com/r/homeassistant
[repository]: https://github.com/hassio-addons/repository
[repository]: https://github.com/hassio-addons/repository

0 comments on commit 096946d

Please sign in to comment.