We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ef57442 + ad1feda commit c5d7c82Copy full SHA for c5d7c82
bin/http-server
@@ -36,7 +36,7 @@ if (argv.h || argv.help) {
36
var port = argv.p || parseInt(process.env.PORT, 10),
37
host = argv.a || '0.0.0.0',
38
log = (argv.s || argv.silent) ? (function () {}) : console.log,
39
- ssl = !!argv.S,
+ ssl = !!argv.S || !!argv.ssl,
40
requestLogger;
41
42
if (!argv.s && !argv.silent) {
@@ -72,10 +72,10 @@ function listen(port) {
72
};
73
}
74
75
- if (argv.S) {
+ if (ssl) {
76
options.https = {
77
- cert: argv.C || 'cert.pem',
78
- key: argv.K || 'key.pem'
+ cert: argv.C || argv.cert || 'cert.pem',
+ key: argv.K || argv.key || 'key.pem'
79
80
81
0 commit comments