add support for big files (for nextcloud)

This commit is contained in:
Manuel 2016-12-13 15:22:51 +01:00
parent 2d686542c8
commit 57bdb2035e

View file

@ -12,7 +12,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 \
&& echo "server_tokens off;" > /etc/nginx/conf.d/noservertokens.conf
&& echo "server_tokens off;" > /etc/nginx/conf.d/noservertokens.conf \
&& echo "client_max_body_size 10G" > /etc/nginx/conf.d/noservertokens.conf
# Install Forego
ADD https://github.com/jwilder/forego/releases/download/v0.16.1/forego /usr/local/bin/forego