add resolver to nginx

This commit is contained in:
vincent 2020-12-14 20:25:08 +01:00
parent 1b3d1e6d29
commit 5ce506eb3d
2 changed files with 4 additions and 2 deletions

View File

@ -31,7 +31,7 @@ nginx_keepalive_timeout: "65"
nginx_keepalive_requests: "100"
nginx_server_tokens: "on"
nginx_server_resolver: ""
nginx_client_max_body_size: "64m"
nginx_server_names_hash_bucket_size: "64"

View File

@ -53,7 +53,9 @@ http {
{% if nginx_extra_http_options %}
{{ nginx_extra_http_options|indent(4, False) }}
{% endif %}
{%if nginx_server_resolver %}
resolver {{nginx_server_resolver}};
{% endif %}
{% block http_upstream %}
{% for upstream in nginx_upstreams %}
upstream {{ upstream.name }} {