Only load modsecurity_module when ModSec is active
This commit is contained in:
parent
28793092e7
commit
c11583dc5f
3 changed files with 99 additions and 8 deletions
|
|
@ -16,7 +16,9 @@ pid {{ .PID }};
|
|||
load_module /etc/nginx/modules/ngx_http_geoip2_module.so;
|
||||
{{ end }}
|
||||
|
||||
{{ if (shouldLoadModSecurityModule $cfg $servers) }}
|
||||
load_module /etc/nginx/modules/ngx_http_modsecurity_module.so;
|
||||
{{ end }}
|
||||
|
||||
{{ if $cfg.EnableOpentracing }}
|
||||
load_module /etc/nginx/modules/ngx_http_opentracing_module.so;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue