added certbot logic
This commit is contained in:
parent
35f620ef31
commit
24912015dd
@ -39,7 +39,7 @@ sslCert="/etc/nginx/ssl/${siteURL}/crt"
|
||||
sslKey="/etc/nginx/ssl/${siteURL}/key"
|
||||
}
|
||||
|
||||
acmeSSL () {
|
||||
certbotSSL () {
|
||||
"${acmebin}" --issue --dns dns_cf -d "${siteURL}" --reloadcmd "systemctl reload nginx" --force
|
||||
|
||||
sslCert="/root/.acme.sh/${siteURL}/fullchain.cer"
|
||||
@ -188,8 +188,12 @@ EOF
|
||||
|
||||
nginx-conf () {
|
||||
if [[ "${ssl}" = 1 ]]; then
|
||||
if [[ "${cbReady} = 1 ]]; then
|
||||
certbotSSL
|
||||
else
|
||||
genSSL
|
||||
fi
|
||||
vHostHTTPS
|
||||
genSSL
|
||||
else
|
||||
vHostHTTP
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user