Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import * as https from 'https';
  2. import * as fs from 'fs';
  3.  
  4. import app from './app';
  5. import { PORT } from './config';
  6.  
  7. const httpsOptions = {
  8. key: fs.readFileSync('./security/key.pem'),
  9. cert: fs.readFileSync('./security/cert.pem')
  10. };
  11.  
  12. https.createServer(httpsOptions, app).listen(PORT, () => {
  13. console.log('Express server listening on port ' + PORT);
  14. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement