Increase client max body size to 10MB
This commit is contained in:
parent
ba13e8bb5d
commit
613b517f6f
1 changed files with 4 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
FROM nginx:1.7.8
|
FROM nginx:1.7.8
|
||||||
MAINTAINER Jason Wilder jwilder@litl.com
|
MAINTAINER https://m-ko-x.de Markus Kosmal <code@m-ko-x.de>
|
||||||
|
|
||||||
# Install wget and install/updates certificates
|
# install packages
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y -q --no-install-recommends \
|
&& apt-get install -y -q --no-install-recommends \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
|
@ -12,7 +12,8 @@ RUN apt-get update \
|
||||||
# Configure Nginx and apply fix for very long server names
|
# Configure Nginx and apply fix for very long server names
|
||||||
RUN echo "daemon off;" >> /etc/nginx/nginx.conf \
|
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
|
||||||
|
&& sed -i 's/^http {/&\n client_max_body_size 10m;/g' /etc/nginx/nginx.conf
|
||||||
|
|
||||||
# Install Forego
|
# Install Forego
|
||||||
RUN wget -P /usr/local/bin https://godist.herokuapp.com/projects/ddollar/forego/releases/current/linux-amd64/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
|
&& chmod u+x /usr/local/bin/forego
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue