Browse Source

suppress newlines

tags/v0.55.0
Kent Shultz 10 years ago
parent
commit
8d4f4b6d6f
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      nginx/templates/config.jinja

+ 6
- 6
nginx/templates/config.jinja View File

{% set group = nginx.get('group', 'www-data') -%} {% set group = nginx.get('group', 'www-data') -%}
user {{ user }} {{ group }}; user {{ user }} {{ group }};
worker_processes {{ nginx.get('worker_processes', 1) }}; 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 }}; worker_rlimit_nofile {{ worker_rlimit_nofile }};
{% endif %}
{% endif -%}


error_log /var/log/nginx/error.fifo warn; error_log /var/log/nginx/error.fifo warn;
pid {{ nginx.get('pid', '/var/run/nginx.pid') }}; pid {{ nginx.get('pid', '/var/run/nginx.pid') }};


events { events {
worker_connections {{ nginx.get('events', {}).get('worker_connections', 1024) }}; 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 }}; use {{ use }};
{% endif %}}
{% endif -%}}
} }


http { http {

Loading…
Cancel
Save