Fixed custom HTTP/2 Server header support

This commit is contained in:
Ricard Bejarano 2018-09-01 04:14:27 +02:00
parent 0fe08f6f8c
commit 17c2889dfd

View file

@ -9,7 +9,6 @@ ARG OPENSSL_CHECKSUM="ebbfc844a8c8cc0ea5dc10b86c9ce97f401837f3fa08c17b2cdadc1182
ARG ZLIB_VERSION="1.2.11"
ARG ZLIB_CHECKSUM="c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1"
ARG NGINX_NAME="bejarano.io"
ARG NGINX_VERSION="1.15.3"
ARG NGINX_CHECKSUM="9391fb91c3e2ebd040a4e3ac2b2f0893deb6232edc30a8e16fcc9c3fa9d6be85"
ARG NGINX_CONFIG="\
@ -65,8 +64,8 @@ RUN apt update && \
WORKDIR /tmp/nginx
RUN apt install -y gcc g++ make && \
sed -i -E "s/\"Server: (.*) CRLF/\"Server: $NGINX_NAME\" CRLF/" src/http/ngx_http_header_filter_module.c && \
find /tmp/nginx -type f | xargs sed -i -E "s/server: (%s|%V|nginx)/server: $NGINX_NAME/g" && \
sed -i -E "s/\"Server: (.*) CRLF/\"Server: bejarano.io\" CRLF/" src/http/ngx_http_header_filter_module.c && \
sed -i -E 's/nginx[5] = "\\x84\\xaa\\x63\\x55\\xe7"/nginx[9] = "\\x88\\x8c\\xbd\\x7\\x60\\xea\\x3a\\xe6\\x3f"/' src/http/v2/ngx_http_v2_filter_module.c && \
./configure $NGINX_CONFIG && \
make && \
make install