From 3caf77cee616fde4cef158e3e71aa131ee9cdb4d Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Sun, 13 Nov 2022 16:59:22 +0100 Subject: [PATCH] cert: add message for fallback cert --- src/reverseproxy.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/reverseproxy.js b/src/reverseproxy.js index 3c85b40f0..de5d3678b 100644 --- a/src/reverseproxy.js +++ b/src/reverseproxy.js @@ -657,13 +657,16 @@ async function renewCerts(options, auditSource, progressCallback) { const domainObject = domainObjectMap[location.domain]; if (location.certificate?.key && location.certificate?.cert) continue; // user cert - if (domainObject.tlsConfig.provider === 'fallback') continue; // fallback certs + if (domainObject.tlsConfig.provider === 'fallback') { + progressCallback({ message: `${location.fqdn} is using fallback certs` }); + continue; + } if (await needsRenewal(location.fqdn, domainObject)) { await renewCert(location.fqdn, domainObject); renewedCertificateNames.push(getAcmeCertificateName(location.fqdn, domainObject)); } else { - progressCallback({ percent, message: `Cert of ${location.fqdn} does not require renewal` }); + progressCallback({ message: `Cert of ${location.fqdn} does not require renewal` }); } }