From d79120cac7e27b72747f333d7f4ecc955478f2fa Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 7 Oct 2016 13:46:29 -0600 Subject: [PATCH] update README --- README.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a05dc92..1ab4008 100644 --- a/README.md +++ b/README.md @@ -23,12 +23,11 @@ Serving /Users/foo/ at https://localhost.daplie.com:8443 Usage ----- -* `-p ` - i.e. `sudo serve-https -p 443` (defaults to 8443) +* `-p ` - i.e. `sudo serve-https -p 443` (defaults to 80+443 or 8443) * `-d ` - i.e. `serve-https -d /tmp/` (defaults to `pwd`) * `-c ` - i.e. `server-https -c 'Hello, World! '` (defaults to directory index) * `--express-app` - path to a file the exports an express-style app (`function (req, res, next) { ... }`) -* `--livereload` - inject livereload into all html pages (see also: [fswatch](http://stackoverflow.com/a/13807906/151312)) -* `--insecure-port ` - run an http server that redirects to https (off by default) +* `--livereload` - inject livereload into all html pages (see also: [fswatch](http://stackoverflow.com/a/13807906/151312)), but be careful if `` has thousands of files it will spike your CPU usage to 100% Specifying a custom HTTPS certificate: @@ -54,7 +53,7 @@ Examples ```bash serve-https -p 1443 -c 'Hello from 1443' & serve-https -p 2443 -c 'Hello from 2443' & -serve-https -p 3443 -d /tmp --insecure-port 4080 & +serve-https -p 3443 -d /tmp & curl https://localhost.daplie.com:1443 > Hello from 1443 @@ -66,8 +65,8 @@ curl https://localhost.daplie.com:3443 > [html index listing of /tmp] ``` -And if you tested in a browser, -it would redirect to . +And if you tested in a browser, +it would redirect to (on the same port). (in curl it would just show an error message)