Add letsencryptclient and configuration file

This commit is contained in:
David Parrish
2015-11-16 01:28:47 -05:00
parent 205b391677
commit bc56da5224
2 changed files with 30 additions and 0 deletions
+6
View File
@@ -6,9 +6,15 @@ RUN apt-get update \
&& apt-get install -y -q --no-install-recommends \
ca-certificates \
wget \
git \
&& apt-get clean \
&& rm -r /var/lib/apt/lists/*
# Get Let's Encrypt client
RUN git -C /opt clone https://github.com/letsencrypt/letsencrypt
#RUN cd /opt/letsencrypt && ./letsencrypt-auto
COPY letsencrypt.ini /etc/letsencrypt/cli.ini
# 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