Before you start, make sure to configure conf/app.conf to serve the proper endpoints and port or static content.
Clone the repo cd into it.
git clone [email protected]:RayLuxembourg/local-ssl.git
cd local-ssl
Generate your private key
mkdir ssl
openssl genrsa -des3 -out ssl/localhost.key 2048
And then generate the root certificate
openssl req -x509 -new -nodes -key ssl/localhost.key -sha256 -days 1825 -out ssl/localhost.pem
Installing the root certificate
sudo security add-trusted-cert -d -r trustRoot -k "/Library/Keychains/System.keychain" ssl/localhost.pem
Run your docker-compose file
docker-compose up -d
This will run a dockerized nginx instance and will load the conf/app.conf file as your nginx configuration