mirror of
https://github.com/thib8956/nginx-proxy
synced 2025-07-01 06:15:45 +00:00
Issue #535 Added default 2048-bit dhparam.pem file
This commit is contained in:
@ -9,9 +9,10 @@ RUN apt-get update \
|
||||
&& apt-get clean \
|
||||
&& rm -r /var/lib/apt/lists/*
|
||||
|
||||
# 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
|
||||
# Generate dhparam.pem, configure Nginx, apply fix for very long server names
|
||||
RUN openssl dhparam -out /etc/nginx/dhparam.pem 2048 \
|
||||
&& echo "daemon off;" >> /etc/nginx/nginx.conf \
|
||||
&& sed -i 's|^http {|&\n server_names_hash_bucket_size 128; ssl_dhparam /etc/nginx/dhparam.pem;|g' /etc/nginx/nginx.conf
|
||||
|
||||
# Install Forego
|
||||
ADD https://github.com/jwilder/forego/releases/download/v0.16.1/forego /usr/local/bin/forego
|
||||
|
Reference in New Issue
Block a user