Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

One line HTTPS server

Tags:

http

https

There are quite a few one line HTTP servers available e.g.

Python

python -m SimpleHTTPServer 8000

Ruby

ruby -run -ehttpd . -p8000

etc.

Are there any 1 line HTTPS servers? If they generate their own self signed certificates, even better. A small number of lines will work too.

like image 383
Jamie McCrindle Avatar asked Nov 06 '14 22:11

Jamie McCrindle


1 Answers

Browsersync does this well.

Install with

npm i -g browser-sync

Serve the contents of the current directory with

browser-sync start -s --https

No setup required. See the docs for other features.

like image 57
brandones Avatar answered Sep 21 '22 18:09

brandones