tomjrtsmith / docker-nginx-letsencrypt

Setup a website , serving it with proper encryption on the fly!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create ssl local

Enabling SSL in our Nginx configuration will involve adding an HTTP redirect to HTTPS and specifying our SSL certificate and key locations. It will also involve specifying our Diffie-Hellman group, which we will use for Perfect Forward Secrecy.

mkdir dhparam
openssl dhparam -out $(pwd)/dhparam/dhparam-2048.pem 2048

Ssl update (LetsEncrypt)

Use regenerateSSL.sh script with system native cron system to renew certificates.( You have to update path,email,domain there)

Changes to work for your domain, search and replace on all files

  • example.com -> your-domain.com
  • /path/to/this/project/dir -> < absolute cloned dir of this project >
  • <your-emmail-here -> an actual email , which bind it with your domain by letsencrypt

This project is followed by tutorial from digitalOcean

You can find it here

About

Setup a website , serving it with proper encryption on the fly!


Languages

Language:Shell 100.0%