*Add xor on staging mode and the letsencrypt cert to reprocess if we are live with a staging cert or on staging mode with a live cert.
This commit is contained in:
parent
e44a87e379
commit
b640084920
|
@ -111,6 +111,13 @@ async function setupSSl() {
|
|||
if (certInfo?.domains.commonName === config.str("domain")) {
|
||||
domainValid = true;
|
||||
}
|
||||
|
||||
if (
|
||||
Boolean(isSSlStaging()) !==
|
||||
Boolean(certInfo?.issuer.commonName.toLowerCase().includes("staging"))
|
||||
) {
|
||||
domainValid = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (dateValid && domainValid) {
|
||||
|
|
Loading…
Reference in New Issue