do not display server version

This commit is contained in:
Manuel 2016-12-10 11:09:17 +01:00
parent 6186fbf8b0
commit 2d686542c8

View file

@ -11,7 +11,8 @@ RUN apt-get update \
# Configure Nginx and apply fix for very long server names
RUN echo "daemon off;" >> /etc/nginx/nginx.conf \
&& sed -i 's/^http {/&\n server_names_hash_bucket_size 128;/g' /etc/nginx/nginx.conf
&& sed -i 's/^http {/&\n server_names_hash_bucket_size 128;/g' /etc/nginx/nginx.conf \
&& echo "server_tokens off;" > /etc/nginx/conf.d/noservertokens.conf
# Install Forego
ADD https://github.com/jwilder/forego/releases/download/v0.16.1/forego /usr/local/bin/forego