From af379cf491081923bfd8a6545b1615dfa9c48318 Mon Sep 17 00:00:00 2001 From: Thomas Frantz Date: Thu, 9 Mar 2017 11:48:45 -0500 Subject: [PATCH] Moved the nginx_extra_conf_options above the events block. --- templates/nginx.conf.j2 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/nginx.conf.j2 b/templates/nginx.conf.j2 index 262e54a..6919509 100644 --- a/templates/nginx.conf.j2 +++ b/templates/nginx.conf.j2 @@ -5,14 +5,15 @@ pid {{ nginx_pidfile }}; worker_processes {{ nginx_worker_processes }}; +{% if nginx_extra_conf_options %} +{{ nginx_extra_conf_options }} +{% endif %} + events { worker_connections {{ nginx_worker_connections }}; multi_accept {{ nginx_multi_accept }}; } -{% if nginx_extra_conf_options %} -{{ nginx_extra_conf_options }} -{% endif %} http { include {{ nginx_mime_file_path }};