moved resolver to nginx dict
This commit is contained in:
parent
6d652e56a9
commit
f79fec1356
3 changed files with 7 additions and 9 deletions
|
|
@ -8,17 +8,15 @@ Other versions might work but are not tested.
|
||||||
|
|
||||||
## Parameters and defaults
|
## Parameters and defaults
|
||||||
|
|
||||||
DNS resolver have to be defined in the `resolver` array. Defaults:
|
|
||||||
|
All configuration is to be placed inside the `nginx` dict.
|
||||||
|
|
||||||
```
|
```
|
||||||
|
# array of DNS resolvers
|
||||||
resolver:
|
resolver:
|
||||||
- 8.8.8.8
|
- 8.8.8.8
|
||||||
- 8.8.4.4
|
- 8.8.4.4
|
||||||
```
|
|
||||||
|
|
||||||
All other configuration is to be placed inside the `nginx` dict.
|
|
||||||
|
|
||||||
```
|
|
||||||
# name: *upstreamconfig*, see below for definition
|
# name: *upstreamconfig*, see below for definition
|
||||||
upstreams: {}
|
upstreams: {}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,3 @@
|
||||||
resolver:
|
|
||||||
- 8.8.8.8
|
|
||||||
- 8.8.4.4
|
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
real_ip_from:
|
real_ip_from:
|
||||||
|
|
@ -12,3 +9,6 @@ nginx:
|
||||||
force_ssl: true
|
force_ssl: true
|
||||||
upstreams: {}
|
upstreams: {}
|
||||||
vhosts: {}
|
vhosts: {}
|
||||||
|
resolver:
|
||||||
|
- 8.8.8.8
|
||||||
|
- 8.8.4.4
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
resolver {{ resolver|join(' ') }};
|
resolver {{ nginx.resolver|join(' ') }};
|
||||||
resolver_timeout 5s;
|
resolver_timeout 5s;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue