Skip to content

Commit

Permalink
Set --modules-path.
Browse files Browse the repository at this point in the history
  • Loading branch information
rnburn committed Oct 24, 2017
1 parent 45f979e commit 6fe64ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions images/nginx-slim/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ fi
./configure \
--prefix=/usr/share/nginx \
--conf-path=/etc/nginx/nginx.conf \
--modules-path=/etc/nginx/modules \
--http-log-path=/var/log/nginx/access.log \
--error-log-path=/var/log/nginx/error.log \
--lock-path=/var/lock/nginx.lock \
Expand All @@ -238,11 +239,6 @@ fi
&& make || exit 1 \
&& make install || exit 1

if [[ ${ARCH} == "x86_64" ]]; then
mkdir -p /etc/nginx/modules/
cp objs/ngx_http_modsecurity_module.so /etc/nginx/modules/
fi

echo "Cleaning..."

cd /
Expand Down
4 changes: 2 additions & 2 deletions rootfs/etc/nginx/template/nginx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ load_module /etc/nginx/modules/ngx_http_modsecurity_module.so;
{{ end }}

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

{{ if (and $cfg.EnableOpentracing (ne $cfg.ZipkinCollectorHost "")) }}
load_module modules/ngx_http_zipkin_module.so;
load_module /etc/nginx/modules/ngx_http_zipkin_module.so;
{{ end }}

daemon off;
Expand Down

0 comments on commit 6fe64ab

Please sign in to comment.