Merge pull request #85 from icamys/change-extra-conf-location

Changed extra conf location in template
pull/97/head^2 2.4.0
Jeff Geerling 7 years ago committed by GitHub
commit 6962e03511
  1. 8
      templates/nginx.conf.j2

@ -7,6 +7,10 @@ pid {{ nginx_pidfile }};
worker_processes {{ nginx_worker_processes }}; worker_processes {{ nginx_worker_processes }};
{% endblock %} {% endblock %}
{% if nginx_extra_conf_options %}
{{ nginx_extra_conf_options }}
{% endif %}
{% block events %} {% block events %}
events { events {
worker_connections {{ nginx_worker_connections }}; worker_connections {{ nginx_worker_connections }};
@ -14,10 +18,6 @@ events {
} }
{% endblock %} {% endblock %}
{% if nginx_extra_conf_options %}
{{ nginx_extra_conf_options }}
{% endif %}
http { http {
{% block http_begin %}{% endblock %} {% block http_begin %}{% endblock %}