Browse Source

Merge pull request #192 from morsik/patch-1

Allow to use load_module directly
master
Niels Abspoel 6 years ago
parent
commit
a5624627dc
No account linked to committer's email address
2 changed files with 5 additions and 0 deletions
  1. +4
    -0
      nginx/ng/files/nginx.conf
  2. +1
    -0
      pillar.example

+ 4
- 0
nginx/ng/files/nginx.conf View File

# #
# This file is managed by Salt. # This file is managed by Salt.


{% if 'load_module' in config.keys() %}
{{ nginx_block(config.pop('load_module'), 'load_module') }}
{%- endif -%}

{% if 'include' in config.keys() %} {% if 'include' in config.keys() %}
{{ nginx_block(config.pop('include'), 'include') }} {{ nginx_block(config.pop('include'), 'include') }}
{%- endif -%} {%- endif -%}

+ 1
- 0
pillar.example View File

# options; if it is found other options (worker_processes: 4 and so # options; if it is found other options (worker_processes: 4 and so
# on) are not processed and just upload the file from source # on) are not processed and just upload the file from source
worker_processes: 4 worker_processes: 4
load_module: modules/ngx_http_lua_module.so # this will be passed very first in configuration; otherwise nginx will fail to start
pid: /var/run/nginx.pid ### Directory location must exist pid: /var/run/nginx.pid ### Directory location must exist
events: events:
worker_connections: 768 worker_connections: 768

Loading…
Cancel
Save