Cyclone :)
This commit is contained in:
parent
e9a5425596
commit
8f075f990d
1 changed files with 2 additions and 2 deletions
4
app.mjs
4
app.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 = https.createServer();
|
||||
const server = http.createServer();
|
||||
|
||||
fs.readdir('/etc/letsencrypt/live', { withFileTypes: true }, (err, files) => {
|
||||
if (!err)
|
||||
|
|
@ -39,4 +39,4 @@ server.on('upgrade', (req, socket, head) => {
|
|||
socket.end();
|
||||
});
|
||||
|
||||
server.listen(443);
|
||||
server.listen(process.env.PORT || 443);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue