Skip to content

Commit

Permalink
test build
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhayward committed Nov 9, 2024
1 parent 03eddbd commit e86c684
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@ NGINX_GROUP=nginx
mkdir -p ${NGINX_SRC}

# modsecurity
cd ${NGINX_SRC}
git clone https://github.com/owasp-modsecurity/ModSecurity
cd ModSecurity/
git submodule init
git submodule update
sh build.sh
./configure
make && make install
make && sudo make install

cd ${NGINX_SRC}
git clone --depth 1 https://github.com/owasp-modsecurity/ModSecurity-nginx.git

# pagespeed
cd ${NGINX_SRC}
Expand All @@ -32,5 +36,5 @@ cd ${NGINX_SRC}
wget http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz
tar -xvzf nginx-${NGINX_VERSION}.tar.gz
cd nginx-${NGINX_VERSION}
./configure --prefix=${NGINX_DIR}/compiled/${NGINX_VERSION} --user=${NGINX_USER} --group=${NGINX_GROUP} --with-http_ssl_module --with-http_stub_status_module --add-module=${NGINX_SRC}/${NPS_DIR} --with-http_v2_module --with-http_v3_module --with-debug --with-http_realip_module
./configure --prefix=${NGINX_DIR}/compiled/${NGINX_VERSION} --user=${NGINX_USER} --group=${NGINX_GROUP} --with-http_ssl_module --with-http_stub_status_module --add-module=${NGINX_SRC}/${NPS_DIR} --with-http_v2_module --with-http_v3_module --with-debug --with-http_realip_module --with-compat --add-dynamic-module=${NGINX_SRC}/ModSecurity-nginx
make && make install

0 comments on commit e86c684

Please sign in to comment.