Simple http to https 301 redirect server (default is 80 to 443)
npm i http2https -g
http2https
note: you might need sudo to bind on 80 & 443
If you would like to redirect from a different source port and destination port (default 80 to 443). you can use arguments or environment variables
http2https 8080 8443