diff --git a/states/nginx/defaults.yaml b/states/nginx/defaults.yaml index 498c680..be32600 100644 --- a/states/nginx/defaults.yaml +++ b/states/nginx/defaults.yaml @@ -8,6 +8,7 @@ nginx: dir: /etc/nginx geoip: false webdav: false + lua: false user: www-data group: www-data workers: 4 diff --git a/states/nginx/templates/nginx.conf.j2 b/states/nginx/templates/nginx.conf.j2 index 7eca119..5a7ecf2 100644 --- a/states/nginx/templates/nginx.conf.j2 +++ b/states/nginx/templates/nginx.conf.j2 @@ -7,6 +7,9 @@ load_module modules/ngx_http_geoip2_module.so; {%- if nginx.config.webdav %} load_module modules/ngx_http_dav_ext_module.so; {%- endif%} +{%- if nginx.config.lua %} +load_module modules/ngx_http_lua_module.so; +{%- endif%} user {{ nginx.config.user }};