Skip to content
Snippets Groups Projects
Commit f38e7a41 authored by Samuel Åkesson's avatar Samuel Åkesson
Browse files

No luck.. switching branch.

parent f6778971
No related branches found
No related tags found
No related merge requests found
...@@ -64,12 +64,12 @@ app.get('/:query', (req, res) => { ...@@ -64,12 +64,12 @@ app.get('/:query', (req, res) => {
}); });
// SSL options // SSL options
const options = { //const options = {
key : fs.readFileSync('/home/sermuns/.ssl/key.pem'), // key : fs.readFileSync('/home/sermuns/.ssl/key.pem'),
cert: fs.readFileSync('/home/sermuns/.ssl/cert.pem') // cert: fs.readFileSync('/home/sermuns/.ssl/cert.pem')
} //}
const server = https.createServer(options, app) //const server = https.createServer(options, app)
server.listen(port, () => { app.listen(port, () => {
console.log(`Server is running on port ${port}`); console.log(`Server is running on port ${port}`);
}); });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment