made server connections work

This commit is contained in:
www-data
2024-02-16 16:15:04 +00:00
parent e18c605c8c
commit fb59fb756e
7 changed files with 114 additions and 9 deletions

View File

@ -37,8 +37,8 @@ app.use(express.json());
app.use(Router);
//setup https
var privateKey = fs.readFileSync('../certs/localhost.key');
var certificate = fs.readFileSync('../certs/localhost.crt');
var privateKey = fs.readFileSync('../certs/privkey.pem');
var certificate = fs.readFileSync('../certs/fullchain.pem');
var server = https.createServer({
key: privateKey,
@ -51,4 +51,4 @@ const PORT = process.env.PORT || serversideConfig.port;
//PORT
server.listen(PORT, () => {
console.log(`Server running successfully (port ${PORT})`);
});
});