From 33e7989fac359e049f50433cc6838777a645ee30 Mon Sep 17 00:00:00 2001 From: Zoey Date: Sun, 8 Oct 2023 22:23:06 +0200 Subject: [PATCH] fix geoip Signed-off-by: Zoey --- Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index a529e8f..9a2d2dd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ ARG NGINX_VER=1.25.2 WORKDIR /src # Requirements RUN apk add --no-cache ca-certificates build-base patch cmake git libtool autoconf automake \ - libatomic_ops-dev zlib-dev luajit-dev pcre-dev linux-headers yajl-dev libxml2-dev libxslt-dev perl-dev curl-dev lua5.1-dev lmdb-dev + libatomic_ops-dev zlib-dev luajit-dev pcre-dev linux-headers yajl-dev libxml2-dev libxslt-dev perl-dev curl-dev lua5.1-dev lmdb-dev geoip-dev libmaxminddb-dev # Openssl RUN git clone --recursive https://github.com/quictls/openssl --branch openssl-3.1.2+quic /src/openssl # modsecurity @@ -24,9 +24,9 @@ RUN wget https://nginx.org/download/nginx-"$NGINX_VER".tar.gz -O - | tar xzC /sr 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://raw.githubusercontent.com/openresty/openresty/master/patches/nginx-1.23.0-resolver_conf_parsing.patch -O /src/nginx/2.patch && \ - sed -i "s|nginx/|nginx-quic/|g" /src/nginx/src/core/nginx.h && \ - sed -i "s|Server: nginx|Server: nginx-quic|g" /src/nginx/src/http/ngx_http_header_filter_module.c && \ - sed -i "s|
nginx
|
nginx-quic
|g" /src/nginx/src/http/ngx_http_special_response.c && \ +# sed -i "s|nginx/|nginx-quic/|g" /src/nginx/src/core/nginx.h && \ +# sed -i "s|Server: nginx|Server: nginx-quic|g" /src/nginx/src/http/ngx_http_header_filter_module.c && \ +# sed -i "s|
nginx
|
nginx-quic
|g" /src/nginx/src/http/ngx_http_special_response.c && \ cd /src/nginx && \ patch -p1