From 5d5387d4ab00f5dcec589ed7eda6f74898f00716 Mon Sep 17 00:00:00 2001 From: SmartCoder3000 <83769295+SmartCoder3000@users.noreply.github.com> Date: Sun, 19 Jun 2022 17:09:22 -0400 Subject: [PATCH] Update app.mjs --- app.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.mjs b/app.mjs index c5948aa..a26c1bf 100644 --- a/app.mjs +++ b/app.mjs @@ -1,5 +1,5 @@ import Server from 'bare-server-node'; -import http from 'http'; +import https from 'https'; import nodeStatic from 'node-static'; import fs from 'fs'; import * as custombare from './static/customBare.mjs'; @@ -10,7 +10,7 @@ const serve = new nodeStatic.Server('static/'); const patronServe = new nodeStatic.Server('static/'); const fakeServe = new nodeStatic.Server('fakeStatic/'); -const server = http.createServer(); +const server = https.createServer(); fs.readdir('/etc/letsencrypt/live', { withFileTypes: true }, (err, files) => { if (!err)