3 ms·
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 loca
by mholt 8y ago
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/ https://localhost:2015/. And you can change the port from the default port with the -port flag.