From e0655c3f0d15c733ffad1c15a8fc3d6666f021d9 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 8 Jul 2015 00:45:40 -0600 Subject: [PATCH] update defaults, https now on 8443 --- README.md | 10 +++++----- serve.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) 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;