Skip to content
Snippets Groups Projects
Commit 7c40b538 authored by Bob Mottram's avatar Bob Mottram
Browse files

use letsencrypt for ssl

parent 3e669382
No related branches found
No related tags found
No related merge requests found
......@@ -124,12 +124,8 @@ function nginx_ssl {
echo ' ssl_stapling off;' >> $filename
echo ' ssl_stapling_verify off;' >> $filename
echo ' ssl on;' >> $filename
if [ -f /etc/ssl/certs/${domain_name}.pem ]; then
echo " ssl_certificate /etc/ssl/certs/${domain_name}.pem;" >> $filename
else
echo " ssl_certificate /etc/ssl/certs/${domain_name}.crt;" >> $filename
fi
echo " ssl_certificate_key /etc/ssl/private/${domain_name}.key;" >> $filename
echo " ssl_certificate /etc/letsencrypt/live/${domain_name}/fullchain.pem;" >> $filename
echo " ssl_certificate_key /etc/letsencrypt/live/${domain_name}/privkey.pem;" >> $filename
echo " ssl_dhparam /etc/ssl/certs/${domain_name}.dhparam;" >> $filename
echo '' >> $filename
echo ' ssl_session_cache builtin:1000 shared:SSL:10m;' >> $filename
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment