Lucas Bürgy's links
Tag cloud
Picture wall
Daily
RSS Feed
  • RSS Feed
  • Daily Feed
  • Weekly Feed
  • Monthly Feed
Filters

Links per page

  • 20 links
  • 50 links
  • 100 links

Filters

Untagged links
How to Use SSL/TLS with Node.js — SitePoint https://www.sitepoint.com/how-to-use-ssltls-with-node-js/
Mon Apr 1 11:16:46 2019
QRCode

Sans Express.js:

const https = require("https"),
          fs = require("fs");

const options = {
          key: fs.readFileSync("/etc/letsencrypt/live/example.com/privkey.pem"),
          cert: fs.readFileSync("/etc/letsencrypt/live/example.com/fullchain.pem")
};

https.createServer(options, function (req, res) {
          res.writeHead(200, {'Content-Type': 'text/html'});
          res.end('Hello World!');
}).listen(443);
ssl nodejs
1244 links, including 4 private
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Theme by kalvn