Merge pull request #1704 from jc21/letsencrypt-cert-request-delay

Adds delay after reloading nginx before requesting ssl certificate using http challenge
This commit is contained in:
jc21 2022-01-02 15:27:39 +10:00 committed by GitHub
commit abe53a4bdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -171,6 +171,7 @@ const internalCertificate = {
// 3. Generate the LE config
return internalNginx.generateLetsEncryptRequestConfig(certificate)
.then(internalNginx.reload)
.then(async() => await new Promise((r) => setTimeout(r, 5000)))
.then(() => {
// 4. Request cert
return internalCertificate.requestLetsEncryptSsl(certificate);