Skip to content

Commit

Permalink
Only load module ngx_http_modsecurity_module.so when option enable-mo…
Browse files Browse the repository at this point in the history
…dsecurity is true
  • Loading branch information
tammert committed May 25, 2019
1 parent 1f4469f commit 38ab220
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rootfs/etc/nginx/template/nginx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ pid {{ .PID }};
load_module /etc/nginx/modules/ngx_http_geoip2_module.so;
{{ end }}

{{ if $all.Cfg.EnableModsecurity }}
load_module /etc/nginx/modules/ngx_http_modsecurity_module.so;
{{ end }}

{{ if $cfg.EnableOpentracing }}
load_module /etc/nginx/modules/ngx_http_opentracing_module.so;
Expand Down

0 comments on commit 38ab220

Please sign in to comment.