Commit b1de56bf authored by yPhil's avatar yPhil
Browse files

https server tests

parent 71dc933f
Pipeline #398131 passed with stage
in 39 seconds
......@@ -6,17 +6,17 @@ const petrolette = require('../petrolette'),
https = require('https'),
fs = require('fs');
const httpsServer = https.createServer({
key: fs.readFileSync(path.join(__dirname, '../cert/privkey.pem'), 'utf8'),
cert: fs.readFileSync(path.join(__dirname, '../cert/cert.pem'), 'utf8'),
}, petrolette);
var httpServer = http.createServer(petrolette);
httpServer.listen(8000, () => {
console.error('HTTP Server running');
});
httpsServer.listen(443, () => {
console.log('HTTPS Server running');
});
// const httpsServer = https.createServer({
// key: fs.readFileSync(path.join(__dirname, '../cert/privkey.pem'), 'utf8'),
// cert: fs.readFileSync(path.join(__dirname, '../cert/cert.pem'), 'utf8'),
// }, petrolette);
// httpsServer.listen(443, () => {
// console.log('HTTPS Server running');
// });
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment