diff --git a/templates/nginx.conf.j2 b/templates/nginx.conf.j2 index cb187d8..7cdec60 100644 --- a/templates/nginx.conf.j2 +++ b/templates/nginx.conf.j2 @@ -7,6 +7,10 @@ pid {{ nginx_pidfile }}; worker_processes {{ nginx_worker_processes }}; {% endblock %} +{% if nginx_extra_conf_options %} +{{ nginx_extra_conf_options }} +{% endif %} + {% block events %} events { worker_connections {{ nginx_worker_connections }}; @@ -14,10 +18,6 @@ events { } {% endblock %} -{% if nginx_extra_conf_options %} -{{ nginx_extra_conf_options }} -{% endif %} - http { {% block http_begin %}{% endblock %}