This commit is contained in:
Asharas 2021-03-08 02:50:27 +01:00 committed by Adrian Nöthlich
parent 00e89ec449
commit d879ddb41f

View file

@ -33,7 +33,7 @@ RUN set -x \
# Copy nginx conf from official image # Copy nginx conf from official image
COPY --from=nginx:latest /etc/nginx /etc/nginx COPY --from=nginx:latest /etc/nginx /etc/nginx
# Change nginx and disable server tokens # Change nginx user and disable server tokens
RUN sed -i -e 's@\(^user\).*[^;]@\1 www-data@' \ RUN sed -i -e 's@\(^user\).*[^;]@\1 www-data@' \
-e "/default_type/a \\ server_tokens off;" /etc/nginx/nginx.conf -e "/default_type/a \\ server_tokens off;" /etc/nginx/nginx.conf