News for hackers. Stuff that matters.
Re:Developing HTTPS Services in Node with Self-Signed Certif... by mholt on Monday May 14, 2018 @01:41AM (#17062974)
You can also front it with Caddy in a single command, no need to generate the self-signed certificate manually and find a place to store it:

$ caddy -host localhost "proxy / localhost:9000" "tls self_signed"

This will serve your Node application (assuming it's on port 9000) at https://localhost:2015/. And you can change the port from the default port with the -port flag.

There are no comments on this comment yet.