From 7e2153bd48a40dbbcb34cb2ff497cdf295b4ab86 Mon Sep 17 00:00:00 2001 From: teddit Date: Thu, 3 Dec 2020 18:34:21 +0100 Subject: [PATCH] rm setup_server.js --- setup_server.js | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 setup_server.js diff --git a/setup_server.js b/setup_server.js deleted file mode 100644 index 016d199..0000000 --- a/setup_server.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - Basic HTTP-server, used for obtaining certificates. -*/ -const path = require('path') -const express = require('express') -const app = express() -const NONSSL_PORT = 8080 -const http = require('http').Server(app) - -app.use(express.static(`${__dirname}/dist`)) -app.set('trust proxy', 1) - -app.get('/', (req, res, next) => { - res.send('/') -}) - -http.listen(NONSSL_PORT, '0.0.0.0', () => console.log(`HTTP web server started with port ${NONSSL_PORT}`))