From 6a3e2a464b651b9e822e90adc77c7f7d3599c032 Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 11 Apr 2024 10:30:13 +0200 Subject: [PATCH] updated nginx state --- states/nginx/defaults.yaml | 1 + states/nginx/templates/nginx.conf.j2 | 3 +++ 2 files changed, 4 insertions(+) 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 }};