From 613b517f6ffdc91feea26b400938d0c961dc5443 Mon Sep 17 00:00:00 2001 From: mko Date: Tue, 17 Feb 2015 22:01:57 +0100 Subject: [PATCH] Increase client max body size to 10MB --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 48a6949..2936e4a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM nginx:1.7.8 -MAINTAINER Jason Wilder jwilder@litl.com +MAINTAINER https://m-ko-x.de Markus Kosmal -# Install wget and install/updates certificates +# install packages RUN apt-get update \ && apt-get install -y -q --no-install-recommends \ ca-certificates \ @@ -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 - + && sed -i 's/^http {/&\n client_max_body_size 10m;/g' /etc/nginx/nginx.conf + # Install Forego RUN wget -P /usr/local/bin https://godist.herokuapp.com/projects/ddollar/forego/releases/current/linux-amd64/forego \ && chmod u+x /usr/local/bin/forego