SHARE
TWEET

Untitled

a guest Jun 18th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top