From b6bc0ccc922b952ceedb4ccfecdb2e4ece736ef1 Mon Sep 17 00:00:00 2001 From: Zoey Date: Sun, 18 Jun 2023 11:48:47 +0200 Subject: [PATCH] add per and njs Signed-off-by: Zoey --- Dockerfile | 28 ++++++++++++---------------- README.md | 2 +- 2 files changed, 13 insertions(+), 17 deletions(-) diff --git a/Dockerfile b/Dockerfile index 40efeb3..3f33357 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,8 @@ ARG NGINX_VER=1.25.1 WORKDIR /src # Requirements -RUN apk add --no-cache ca-certificates build-base patch cmake git perl libtool autoconf automake \ - libatomic_ops-dev zlib-dev luajit-dev pcre-dev linux-headers yajl-dev libxml2-dev lua5.1-dev +RUN apk add --no-cache ca-certificates build-base patch cmake git mercurial libtool autoconf automake \ + libatomic_ops-dev zlib-dev luajit-dev pcre-dev linux-headers yajl-dev libxml2-dev libxslt-dev perl-dev lua5.1-dev # Openssl RUN git clone --recursive https://github.com/quictls/openssl --branch openssl-3.1.0+quic+locks /src/openssl RUN cd /src/openssl && \ @@ -26,24 +26,22 @@ RUN git clone --recursive https://github.com/SpiderLabs/ModSecurity /src/ModSecu RUN wget https://nginx.org/download/nginx-"$NGINX_VER".tar.gz -O - | tar xzC /src && \ mv /src/nginx-"$NGINX_VER" /src/nginx && \ wget https://raw.githubusercontent.com/nginx-modules/ngx_http_tls_dyn_size/master/nginx__dynamic_tls_records_1.25.1%2B.patch -O /src/nginx/1.patch && \ -# wget https://github.com/angristan/nginx-autoinstall/raw/master/patches/nginx_hpack_push_with_http3.patch -O /src/nginx/2.patch && \ - wget https://raw.githubusercontent.com/openresty/openresty/master/patches/nginx-1.23.0-resolver_conf_parsing.patch -O /src/nginx/3.patch && \ + wget https://raw.githubusercontent.com/openresty/openresty/master/patches/nginx-1.23.0-resolver_conf_parsing.patch -O /src/nginx/2.patch && \ +# wget https://github.com/angristan/nginx-autoinstall/raw/master/patches/nginx_hpack_push_with_http3.patch -O /src/nginx/3.patch && \ # sed -i "s|nginx/|nginx-proxy-manager/|g" /src/nginx/src/core/nginx.h && \ # sed -i "s|Server: nginx|Server: nginx-proxy-manager|g" /src/nginx/src/http/ngx_http_header_filter_module.c && \ # sed -i "s|
nginx
|
nginx-proxy-manager
|g" /src/nginx/src/http/ngx_http_special_response.c && \ cd /src/nginx && \ patch -p1 Please add: `/usr/local/nginx/lib/lua/?.lua;;` to the http part of your nginx.conf (replace /usr/local/nginx with the patch where you installed the tar file to)