From c7656e7e6bf7638b291dede0bc536b73dc9fff97 Mon Sep 17 00:00:00 2001 From: Gilbert Date: Tue, 8 Oct 2024 02:08:01 -0500 Subject: [PATCH] Add hook for configuring ssl AFTER listen on 80, BEFORE listen on 443 --- bin/start/serve.js | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/start/serve.js b/bin/start/serve.js index 94946d6..fbfd488 100644 --- a/bin/start/serve.js +++ b/bin/start/serve.js @@ -117,6 +117,7 @@ function render(r) { async function listenHttps() { isMainThread && config.acme.domains.length && await runAcme() + server.configureSsl && await server.configureSsl(router) sslListener && (sslListener.unlisten(), sslListener = null) sslListener = await router.listen(config.httpsPort, config.address, config.ssl) console.log('HTTPS Listening on', config.httpsPort) // eslint-disable-line