From 928882e40199a809ef439d5a49900a5fa9d3a029 Mon Sep 17 00:00:00 2001 From: Kent Shultz Date: Wed, 28 May 2014 16:33:29 -0700 Subject: [PATCH] add support for worker_rlimit_nofile --- nginx/templates/config.jinja | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nginx/templates/config.jinja b/nginx/templates/config.jinja index 693be56..2cd150c 100644 --- a/nginx/templates/config.jinja +++ b/nginx/templates/config.jinja @@ -3,6 +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 %} +worker_rlimit_nofile {{ worker_rlimit_nofile }}; +{% endif %} error_log /var/log/nginx/error.fifo warn; pid {{ nginx.get('pid', '/var/run/nginx.pid') }};