From c803ec7e26101804ecd4d23a0a318c0648fd6ad7 Mon Sep 17 00:00:00 2001 From: chaptergy Date: Thu, 30 Dec 2021 13:21:21 +0100 Subject: [PATCH] Adds delay after reloading nginx before requesting ssl certificate using http challenge --- backend/internal/certificate.js | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/internal/certificate.js b/backend/internal/certificate.js index 55f55d0..0c24c5c 100644 --- a/backend/internal/certificate.js +++ b/backend/internal/certificate.js @@ -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);