diff --git a/README.md b/README.md index f91b492..114e4c5 100644 --- a/README.md +++ b/README.md @@ -16,16 +16,16 @@ serve-https ``` ``` -Serving /Users/foo/ at https://localhost.daplie.com:1443 +Serving /Users/foo/ at https://localhost.daplie.com:8443 ``` Usage ----- -* `-p ` - i.e. `sudo serve-https -p 443` -* `-d ` - i.e. `serve-https -d /tmp/` -* `-c ` - i.e. `server-https -c 'Hello, World! '` -* `--insecure-port ` - run an http server that redirects to https +* `-p ` - i.e. `sudo serve-https -p 443` (defaults to 8443) +* `-d ` - i.e. `serve-https -d /tmp/` (defaults to `pwd`) +* `-c ` - i.e. `server-https -c 'Hello, World! '` (defaults to directory index) +* `--insecure-port ` - run an http server that redirects to https (off by default) Specifying a custom HTTPS certificate: diff --git a/serve.js b/serve.js index addebc5..2f48470 100755 --- a/serve.js +++ b/serve.js @@ -67,7 +67,7 @@ module.exports.createServer = createServer; function run() { var minimist = require('minimist'); var argv = minimist(process.argv.slice(2)); - var port = argv.p || argv.port || argv._[0] || 1443; + var port = argv.p || argv.port || argv._[0] || 8443; var pubdir = path.resolve(argv.d || argv._[1] || process.cwd()); var content = argv.c;