0.0.2 • Published 8 years ago
https-app v0.0.2
#HTTP Service for Express Server
HTTPS Service will listen on process.env.PORT_HTTPS or 8000
Expects environment variables for paths to ssl certification sslKey : process.env.SSL_KEY sslCert : process.env.SSL_CERT sslChain : process.env.SSL_CHAIN
const express = require('express');
const app = express();
const httpsApp = require('https-app');
httpsApp(app)
.then((message) => console.log(message))
.catch((error) => console.error(error));
// Server listening HTTPS on port 4000