Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions scripts/build-openresty
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@ YELLOW='\E[1;33m'
GREEN='\E[1;32m'
RESET='\E[0m'

echo -e "${BLUE}❯ ${CYAN}Building OpenResty ${YELLOW}${OPENRESTY_VERSION} with nginx_http_geoip2 module...${RESET}"
echo -e "${BLUE}❯ ${CYAN}Building OpenResty ${YELLOW}${OPENRESTY_VERSION} with nginx_http_geoip2 and nginx-ntlm module...${RESET}"

cd /tmp
wget "https://openresty.org/download/openresty-${OPENRESTY_VERSION}.tar.gz"
tar -xzf openresty-${OPENRESTY_VERSION}.tar.gz
mv /tmp/openresty-${OPENRESTY_VERSION} /tmp/openresty
git clone https://github.com/leev/ngx_http_geoip2_module.git
mv /tmp/ngx_http_geoip2_module /tmp/openresty/ngx_http_geoip2_module
git clone https://github.com/gabihodoroaga/nginx-ntlm-module.git
mv /tmp/nginx-ntlm-module /tmp/openresty/nginx-ntlm-module
cd /tmp/openresty

./configure \
Expand Down Expand Up @@ -55,7 +57,8 @@ cd /tmp/openresty
--with-stream_realip_module \
--with-stream_ssl_module \
--with-stream_ssl_preread_module \
--add-dynamic-module=/tmp/openresty/ngx_http_geoip2_module
--add-dynamic-module=/tmp/openresty/ngx_http_geoip2_module \
--add-dynamic-module=/tmp/openresty/nginx-ntlm-module

make -j2

Expand Down