News for hackers. Stuff that matters.
Re:Developing HTTPS Services in Node with Self-Signed Certif... by z3t4 on Monday May 14, 2018 @03:09AM (#17063408)
Save a ton of work by placing a http proxy infront of your NodeJS apps, and also let the http proxy serve static content. That way you dont have to implement a http-server+SSL+routing+file-server for each nodejs project. There are a lot of advantages to keeping a program small: For example less bugs, less maintenance, and faster implementation.
Re:Developing HTTPS Services in Node with Self-Signed Certif... by gbuk2013 on Monday May 14, 2018 @04:28AM (#17063805)
I second this. In production I will typically front my Node app with Nginx that takes care of SSL and static file serving. There is also a substantial performance benefit.

Can all be bundled up in a single Docker container for super easy deployment. :)