Skip to content

Commit 4dcb247

Browse files
committed
feat: add more https option related cli flags
1 parent e10c2a0 commit 4dcb247

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

bin/cli-flags.js

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,51 @@ module.exports = {
128128
negatedDescription: 'Do not use HTTPS protocol.',
129129
negative: true,
130130
},
131+
{
132+
name: 'https-key',
133+
type: String,
134+
configs: [
135+
{
136+
type: 'string',
137+
},
138+
],
139+
description: 'Path to an SSL key.',
140+
processor(opts) {
141+
opts.https = opts.https || {};
142+
opts.https.key = opts.httpsKey;
143+
delete opts.httpsKey;
144+
},
145+
},
146+
{
147+
name: 'https-pfx',
148+
type: String,
149+
configs: [
150+
{
151+
type: 'string',
152+
},
153+
],
154+
description: 'Path to an SSL pfx file.',
155+
processor(opts) {
156+
opts.https = opts.https || {};
157+
opts.https.pfx = opts.httpsPfx;
158+
delete opts.httpsPfx;
159+
},
160+
},
161+
{
162+
name: 'https-cert',
163+
type: String,
164+
configs: [
165+
{
166+
type: 'string',
167+
},
168+
],
169+
description: 'Path to an SSL certificate.',
170+
processor(opts) {
171+
opts.https = opts.https || {};
172+
opts.https.cert = opts.httpsCert;
173+
delete opts.httpsCert;
174+
},
175+
},
131176
{
132177
name: 'http2',
133178
type: Boolean,

0 commit comments

Comments
 (0)