mirror of
https://github.com/wassname/nginx-proxy-letsencrypt.git
synced 2026-09-11 12:30:41 +08:00
Add letsencryptclient and configuration file
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user