rm setup_server.js

This commit is contained in:
teddit 2020-12-03 18:34:21 +01:00
parent b30fd782ff
commit 7e2153bd48

View File

@ -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}`))