Fixed nginx config generation

This commit is contained in:
Brain-Gamer 2017-05-20 20:00:30 +02:00
parent ae1b1f3e22
commit ab46038b11

View file

@ -19,8 +19,8 @@ RUN apk add --update \
rm -rf /var/cache/apk/*
# Configure Nginx and apply fix for very long server names
COPY ./nginx.conf /etc/nginx/nginx.conf
RUN sed -i 's/^http {/&\n server_names_hash_bucket_size 128;/g' /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
COPY . /app/
WORKDIR /app/