Skip to content

Commit

Permalink
feat: add more https option related cli flags
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed May 2, 2021
1 parent e10c2a0 commit 4dcb247
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions bin/cli-flags.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,51 @@ module.exports = {
negatedDescription: 'Do not use HTTPS protocol.',
negative: true,
},
{
name: 'https-key',
type: String,
configs: [
{
type: 'string',
},
],
description: 'Path to an SSL key.',
processor(opts) {
opts.https = opts.https || {};
opts.https.key = opts.httpsKey;
delete opts.httpsKey;
},
},
{
name: 'https-pfx',
type: String,
configs: [
{
type: 'string',
},
],
description: 'Path to an SSL pfx file.',
processor(opts) {
opts.https = opts.https || {};
opts.https.pfx = opts.httpsPfx;
delete opts.httpsPfx;
},
},
{
name: 'https-cert',
type: String,
configs: [
{
type: 'string',
},
],
description: 'Path to an SSL certificate.',
processor(opts) {
opts.https = opts.https || {};
opts.https.cert = opts.httpsCert;
delete opts.httpsCert;
},
},
{
name: 'http2',
type: Boolean,
Expand Down

0 comments on commit 4dcb247

Please sign in to comment.