Преглед изворни кода

Adds delay after reloading nginx before requesting ssl certificate using http challenge

chaptergy пре 4 година
родитељ
комит
c803ec7e26
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      backend/internal/certificate.js

+ 1 - 0
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);