Only create certificate if certDir set

This commit is contained in:
Max Goodhart
2020-07-19 19:33:24 -07:00
parent 3e197ca028
commit b8109735fa

View File

@@ -142,7 +142,7 @@ export default async function initWebServer({
})
let server
if (protocol === 'https:') {
if (protocol === 'https:' && certDir) {
const { key, cert } = await simpleCert({
dataDir: certDir,
commonName: hostname,