suppress newlines

This commit is contained in:
Kent Shultz 2014-05-28 17:03:55 -07:00
parent b4ae528df5
commit 8d4f4b6d6f

View File

@ -3,10 +3,10 @@
{% set group = nginx.get('group', 'www-data') -%}
user {{ user }} {{ group }};
worker_processes {{ nginx.get('worker_processes', 1) }};
{% set worker_rlimit_nofile = nginx.get('worker_rlimit_nofile', '') %}
{% if worker_rlimit_nofile %}
{% set worker_rlimit_nofile = nginx.get('worker_rlimit_nofile', '') -%}
{% if worker_rlimit_nofile -%}
worker_rlimit_nofile {{ worker_rlimit_nofile }};
{% endif %}
{% endif -%}
error_log /var/log/nginx/error.fifo warn;
pid {{ nginx.get('pid', '/var/run/nginx.pid') }};
@ -14,10 +14,10 @@ daemon {{ nginx.get('daemon', 'off') }};
events {
worker_connections {{ nginx.get('events', {}).get('worker_connections', 1024) }};
{% set use = nginx.get('events', {}).get('use', '') %}
{% if use %}
{% set use = nginx.get('events', {}).get('use', '') -%}
{% if use -%}
use {{ use }};
{% endif %}}
{% endif -%}}
}
http {