nginx: Fix incorrect display of YAML config example in documentation (#2119)

This commit is contained in:
Franck Nijhof
2021-07-21 23:17:21 +02:00
committed by GitHub
parent 65e221267d
commit d2769651ce

View File

@@ -18,12 +18,14 @@ The NGINX Proxy add-on is commonly used in conjunction with the [Duck DNS](https
- `ssl_key` - `ssl_key`
- `server_port` - `server_port`
3. And you need to add the `trusted_proxies` section (requests from reverse proxies will be blocked if these options are not set). 3. And you need to add the `trusted_proxies` section (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 - 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). 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. 5. Leave all other options as-is.
6. Save configuration. 6. Save configuration.