Skip to content
This repository has been archived by the owner on Nov 16, 2018. It is now read-only.

digitalcanvasdesign/docker-nginx-ssl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Nginx Lets Encrypt

Before you do anything, you need to generate a dhparam key. If you have openssl installed on your machine, you can run:

openssl dhparam -out /certs/dhparam.pem 2048

Or a container:

docker run -ti -v $PWD/data/certs:/certs digitalcanvasdesign/openssl dhparam -out /certs/dhparam.pem 2048

We need to make sure the dhparam.pem key that we just generated was created is mounted into your container at the following location:

/etc/nginx/ssl/dhparam.pem