use letsencrypt for ssl
This commit is contained in:
parent
3e66938299
commit
7c40b53833
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue