mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
Fix bug with ssl renew
This commit is contained in:
parent
36896bcfc9
commit
6428423274
@ -26,13 +26,14 @@ const internalSsl = {
|
|||||||
processExpiringHosts: () => {
|
processExpiringHosts: () => {
|
||||||
if (!internalSsl.interval_processing) {
|
if (!internalSsl.interval_processing) {
|
||||||
logger.info('Renewing SSL certs close to expiry...');
|
logger.info('Renewing SSL certs close to expiry...');
|
||||||
return utils.exec('/usr/bin/certbot renew --webroot=/config/letsencrypt-acme-challenge')
|
return utils.exec('/usr/bin/certbot renew -q')
|
||||||
.then(result => {
|
.then(result => {
|
||||||
logger.info(result);
|
logger.info(result);
|
||||||
internalSsl.interval_processing = false;
|
internalSsl.interval_processing = false;
|
||||||
|
|
||||||
return internalNginx.reload()
|
return internalNginx.reload()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
logger.info('Renew Complete');
|
||||||
return result;
|
return result;
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
@ -59,7 +60,7 @@ const internalSsl = {
|
|||||||
requestSsl: host => {
|
requestSsl: host => {
|
||||||
logger.info('Requesting SSL certificates for ' + host.hostname);
|
logger.info('Requesting SSL certificates for ' + host.hostname);
|
||||||
|
|
||||||
return utils.exec('/usr/bin/letsencrypt certonly --agree-tos --email "' + host.letsencrypt_email + '" -n -a webroot --webroot-path=/config/letsencrypt-acme-challenge -d "' + host.hostname + '"')
|
return utils.exec('/usr/bin/letsencrypt certonly --agree-tos --email "' + host.letsencrypt_email + '" -n -a webroot -d "' + host.hostname + '"')
|
||||||
.then(result => {
|
.then(result => {
|
||||||
logger.info(result);
|
logger.info(result);
|
||||||
return result;
|
return result;
|
||||||
@ -73,7 +74,7 @@ const internalSsl = {
|
|||||||
renewSsl: host => {
|
renewSsl: host => {
|
||||||
logger.info('Renewing SSL certificates for ' + host.hostname);
|
logger.info('Renewing SSL certificates for ' + host.hostname);
|
||||||
|
|
||||||
return utils.exec('/usr/bin/certbot renew --force-renewal --disable-hook-validation --webroot-path=/config/letsencrypt-acme-challenge --cert-name "' + host.hostname + '"')
|
return utils.exec('/usr/bin/certbot renew --force-renewal --disable-hook-validation --cert-name "' + host.hostname + '"')
|
||||||
.then(result => {
|
.then(result => {
|
||||||
logger.info(result);
|
logger.info(result);
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user