Dynamic module management (closes #23)

This commit is contained in:
Emilien Mantel
2016-10-12 18:13:59 +02:00
parent ef3440a015
commit 42bb4a3e2b
7 changed files with 41 additions and 1 deletions

View File

@@ -5,6 +5,11 @@
user {{ nginx_user }};
worker_processes {{ nginx_worker_processes }};
pid {{ nginx_pid }};
{% if nginx_version.stdout | version_compare('1.9.1', 'ge') %}
{% for module in nginx_dyn_modules -%}
load_module "modules/ngx_{{ module }}_module.so";
{% endfor %}
{% endif %}
events {
worker_connections {{ nginx_events_worker_connections }};