Skip to content

Commit c803ec7

Browse files
committed
Adds delay after reloading nginx before requesting ssl certificate using http challenge
1 parent adc5a20 commit c803ec7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backend/internal/certificate.js

+1
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ const internalCertificate = {
171171
// 3. Generate the LE config
172172
return internalNginx.generateLetsEncryptRequestConfig(certificate)
173173
.then(internalNginx.reload)
174+
.then(async() => await new Promise((r) => setTimeout(r, 5000)))
174175
.then(() => {
175176
// 4. Request cert
176177
return internalCertificate.requestLetsEncryptSsl(certificate);

0 commit comments

Comments
 (0)