Load modules before events directive

In Nginx 1.12.x (latest stable version) you will have a config error
if you try to load modules before the events directive. With this
change we avoid this problem.
pull/113/head
Fernando Membrive 7 years ago
parent da2ec60144
commit f2608c7597
  1. 8
      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 %}