Skip to content

Commit

Permalink
fixed: wrong special answer and pid path
Browse files Browse the repository at this point in the history
  • Loading branch information
ammnt committed Apr 5, 2024
1 parent a2c6df7 commit 5c5d1a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@ RUN NB_CORES="${BUILD_CORES-$(getconf _NPROCESSORS_CONF)}" \
&& sed -i -e 's@r->headers_out.server == NULL@0@g' /tmp/nginx/src/http/v2/ngx_http_v2_filter_module.c \
&& sed -i -e 's@r->headers_out.server == NULL@0@g' /tmp/nginx/src/http/v3/ngx_http_v3_filter_module.c \
&& sed -i -e 's@<hr><center>nginx</center>@@g' /tmp/nginx/src/http/ngx_http_special_response.c \
&& sed -i -e 's@<hr><center>freenginx</center>@@g' /tmp/nginx/src/http/ngx_http_special_response.c \
&& sed -i -e 's@NGINX_VERSION ".*"@NGINX_VERSION " "@g' /tmp/nginx/src/core/nginx.h \
&& sed -i -e 's/listen 80;/listen 8080;/g' /tmp/nginx/conf/nginx.conf \
&& sed -i -e 's@#tcp_nopush on;@client_body_temp_path /tmp/client_temp;@g' /tmp/nginx/conf/nginx.conf \
&& sed -i -e 's@#keepalive_timeout 0;@proxy_temp_path /tmp/proxy_temp;@g' /tmp/nginx/conf/nginx.conf \
&& sed -i -e 's@#gzip on;@fastcgi_temp_path /tmp/fastcgi_temp;@g' /tmp/nginx/conf/nginx.conf \
&& sed -i -e '1i pid /tmp/nginx.pid;\n' /tmp/nginx/conf/nginx.conf \
&& sed -i -e '1i pid /tmp/freenginx.pid;\n' /tmp/nginx/conf/nginx.conf \
&& addgroup -S freenginx && adduser -S freenginx -s /sbin/nologin -G freenginx --no-create-home \
&& hg clone https://hg.nginx.org/njs && (git clone https://boringssl.googlesource.com/boringssl /tmp/boringssl \
&& cd /tmp/boringssl && git checkout --force --quiet e648990 \
Expand Down

0 comments on commit 5c5d1a3

Please sign in to comment.