update defaults, https now on 8443

This commit is contained in:
AJ ONeal 2015-07-08 00:45:40 -06:00
parent f068d84490
commit e0655c3f0d
2 changed files with 6 additions and 6 deletions

View File

@ -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 <port>` - i.e. `sudo serve-https -p 443`
* `-d <dirpath>` - i.e. `serve-https -d /tmp/`
* `-c <content>` - i.e. `server-https -c 'Hello, World! '`
* `--insecure-port <port>` - run an http server that redirects to https
* `-p <port>` - i.e. `sudo serve-https -p 443` (defaults to 8443)
* `-d <dirpath>` - i.e. `serve-https -d /tmp/` (defaults to `pwd`)
* `-c <content>` - i.e. `server-https -c 'Hello, World! '` (defaults to directory index)
* `--insecure-port <port>` - run an http server that redirects to https (off by default)
Specifying a custom HTTPS certificate:

View File

@ -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;