diff --git a/roles/consul/templates/consul.hcl.j2 b/roles/consul/templates/consul.hcl.j2 index 05c0d56..96d854e 100644 --- a/roles/consul/templates/consul.hcl.j2 +++ b/roles/consul/templates/consul.hcl.j2 @@ -51,6 +51,13 @@ recursors = [ {% endfor %} ] +{% if consul_conf.domain is defined %} +domain = "{{ consul_conf.domain }}" +{% if consul_conf.alt_domain is defined %} +alt_domain = "{{ consul_conf.alt_domain }}" +{% endif %} +{% endif %} + telemetry { prometheus_retention_time = "{{ consul_conf.telemetry.prometheus_retention_time }}" } diff --git a/roles/nginx/templates/nginx.conf.j2 b/roles/nginx/templates/nginx.conf.j2 index 67f708c..c1aa9c4 100644 --- a/roles/nginx/templates/nginx.conf.j2 +++ b/roles/nginx/templates/nginx.conf.j2 @@ -15,6 +15,8 @@ events { http { + server_names_hash_max_size 1024; + {% if nginx_openresty %} # Set nginx compatible paths for openresty client_body_temp_path /var/lib/nginx/tmp/client_body;