update defaults, https now on 8443
This commit is contained in:
parent
f068d84490
commit
e0655c3f0d
10
README.md
10
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 <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:
|
||||
|
||||
|
|
2
serve.js
2
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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue