webpack-dev-server 4.2.0 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -14
- package/bin/cli-flags.js +288 -32
- package/client/index.js +35 -16
- package/client/modules/logger/index.js +43 -14
- package/client/modules/sockjs-client/index.js +2 -1
- package/client/modules/strip-ansi/index.js +1 -1
- package/client/overlay.js +30 -5
- package/client/socket.js +7 -3
- package/client/utils/reloadApp.js +4 -12
- package/lib/Server.js +163 -109
- package/lib/options.json +275 -11
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -26,6 +26,7 @@ fast in-memory access to the webpack assets.
|
|
|
26
26
|
- [Usage](#usage)
|
|
27
27
|
- [With the CLI](#with-the-cli)
|
|
28
28
|
- [With NPM Scripts](#with-npm-scripts)
|
|
29
|
+
- [With the API](#with-the-api)
|
|
29
30
|
- [The Result](#the-result)
|
|
30
31
|
- [Browser Support](#browser-support)
|
|
31
32
|
- [Support](#support)
|
|
@@ -93,6 +94,8 @@ Options:
|
|
|
93
94
|
--client-logging <value> Allows to specify options for client script in the browser or disable client script.
|
|
94
95
|
--client-progress Prints compilation progress in percentage in the browser.
|
|
95
96
|
--no-client-progress Does not print compilation progress in percentage in the browser.
|
|
97
|
+
--client-reconnect [value] Tells dev-server the number of times it should try to reconnect the client.
|
|
98
|
+
--no-client-reconnect Tells dev-server to not to try to connect the client.
|
|
96
99
|
--client-overlay Enables a full-screen overlay in the browser when there are compiler errors or warnings.
|
|
97
100
|
--no-client-overlay Disables a full-screen overlay in the browser when there are compiler errors or warnings.
|
|
98
101
|
--client-overlay-errors Enables a full-screen overlay in the browser when there are compiler errors.
|
|
@@ -119,21 +122,35 @@ Options:
|
|
|
119
122
|
--no-http2 Does not serve over HTTP/2 using SPDY.
|
|
120
123
|
--https Allows to configure the server's listening socket for TLS (by default, dev server will be served over HTTP).
|
|
121
124
|
--no-https Disallows to configure the server's listening socket for TLS (by default, dev server will be served over HTTP).
|
|
122
|
-
--https-passphrase <value> Passphrase for a pfx file.
|
|
123
|
-
--https-request-cert Request for an SSL certificate.
|
|
124
|
-
|
|
125
|
-
--https-
|
|
126
|
-
--https-ca
|
|
127
|
-
|
|
128
|
-
--https-
|
|
129
|
-
|
|
130
|
-
--https-
|
|
131
|
-
|
|
125
|
+
--https-passphrase <value> Passphrase for a pfx file. Deprecated, it will be removed in favor of the `server.options.passphrase` option.
|
|
126
|
+
--https-request-cert Request for an SSL certificate. Deprecated, it will be removed in favor of the `server.options.requestCert`
|
|
127
|
+
option.
|
|
128
|
+
--no-https-request-cert Negative 'https-request-cert' option.
|
|
129
|
+
--https-ca <value...> Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, it will be removed in favor of the
|
|
130
|
+
`server.options.ca` option.
|
|
131
|
+
--https-ca-reset Clear all items provided in 'https.ca' configuration. Path to an SSL CA certificate or content of an SSL CA
|
|
132
|
+
certificate. Deprecated, it will be removed in favor of the `server.options.ca` option.
|
|
133
|
+
--https-cacert <value...> Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, it will be removed in favor of the
|
|
134
|
+
`server.options.cacert` option.
|
|
135
|
+
--https-cacert-reset Clear all items provided in 'https.cacert' configuration. Path to an SSL CA certificate or content of an SSL CA
|
|
136
|
+
certificate. Deprecated, it will be removed in favor of the `server.options.cacert` option.
|
|
137
|
+
--https-cert <value...> Path to an SSL certificate or content of an SSL certificate. Deprecated, it will be removed in favor of the
|
|
138
|
+
`server.options.cert` option.
|
|
139
|
+
--https-cert-reset Clear all items provided in 'https.cert' configuration. Path to an SSL certificate or content of an SSL
|
|
140
|
+
certificate. Deprecated, it will be removed in favor of the `server.options.cert` option.
|
|
141
|
+
--https-crl <value...> Path to PEM formatted CRLs (Certificate Revocation Lists) or content of PEM formatted CRLs (Certificate
|
|
142
|
+
Revocation Lists). Deprecated, it will be removed in favor of the `server.options.crl` option.
|
|
143
|
+
--https-crl-reset Clear all items provided in 'https.crl' configuration. Path to PEM formatted CRLs (Certificate Revocation Lists)
|
|
144
|
+
or content of PEM formatted CRLs (Certificate Revocation Lists). Deprecated, it will be removed in favor of the
|
|
145
|
+
`server.options.crl` option.
|
|
146
|
+
--https-key <value...> Path to an SSL key or content of an SSL key. Deprecated, it will be removed in favor of the `server.options.key`
|
|
147
|
+
option.
|
|
148
|
+
--https-key-reset Clear all items provided in 'https.key' configuration. Path to an SSL key or content of an SSL key. Deprecated,
|
|
149
|
+
it will be removed in favor of the `server.options.key` option.
|
|
150
|
+
--https-pfx <value...> Path to an SSL pfx file or content of an SSL pfx file. Deprecated, it will be removed in favor of the
|
|
151
|
+
`server.options.pfx` option.
|
|
132
152
|
--https-pfx-reset Clear all items provided in 'https.pfx' configuration. Path to an SSL pfx file or content of an SSL pfx file.
|
|
133
|
-
|
|
134
|
-
--https-cert-reset Clear all items provided in 'https.cert' configuration. Path to an SSL certificate or content of an SSL certificate.
|
|
135
|
-
--https-crl <value...> Path to PEM formatted CRLs (Certificate Revocation Lists) or content of PEM formatted CRLs (Certificate Revocation Lists).
|
|
136
|
-
--https-crl-reset Clear all items provided in 'https.crl' configuration. Path to PEM formatted CRLs (Certificate Revocation Lists) or content of PEM formatted CRLs (Certificate Revocation Lists).
|
|
153
|
+
Deprecated, it will be removed in favor of the `server.options.pfx` option.
|
|
137
154
|
--ipc [value] Listen to a unix socket.
|
|
138
155
|
--live-reload Enables reload/refresh the page(s) when file changes are detected (enabled by default).
|
|
139
156
|
--no-live-reload Disables reload/refresh the page(s) when file changes are detected (enabled by default)
|
|
@@ -148,6 +165,29 @@ Options:
|
|
|
148
165
|
--open-target-reset Clear all items provided in 'open.target' configuration. Opens specified page in browser.
|
|
149
166
|
--open-app-name-reset Clear all items provided in 'open.app.name' configuration. Open specified browser.
|
|
150
167
|
--port <value> Allows to specify a port to use.
|
|
168
|
+
--server-type <value> Allows to set server and options (by default 'http').
|
|
169
|
+
--server-options-passphrase <value> Passphrase for a pfx file.
|
|
170
|
+
--server-options-request-cert Request for an SSL certificate.
|
|
171
|
+
--no-server-options-request-cert Negative 'server-options-request-cert' option.
|
|
172
|
+
--server-options-ca <value...> Path to an SSL CA certificate or content of an SSL CA certificate.
|
|
173
|
+
--server-options-ca-reset Clear all items provided in 'server.options.ca' configuration. Path to an SSL CA certificate or content
|
|
174
|
+
of an SSL CA certificate.
|
|
175
|
+
--server-options-cacert <value...> Path to an SSL CA certificate or content of an SSL CA certificate.
|
|
176
|
+
--server-options-cacert-reset Clear all items provided in 'server.options.cacert' configuration. Path to an SSL CA certificate or
|
|
177
|
+
content of an SSL CA certificate.
|
|
178
|
+
--server-options-cert <value...> Path to an SSL certificate or content of an SSL certificate.
|
|
179
|
+
--server-options-cert-reset Clear all items provided in 'server.options.cert' configuration. Path to an SSL certificate or content
|
|
180
|
+
of an SSL certificate.
|
|
181
|
+
--server-options-crl <value...> Path to PEM formatted CRLs (Certificate Revocation Lists) or content of PEM formatted CRLs (Certificate
|
|
182
|
+
Revocation Lists).
|
|
183
|
+
--server-options-crl-reset Clear all items provided in 'server.options.crl' configuration. Path to PEM formatted CRLs (Certificate
|
|
184
|
+
Revocation Lists) or content of PEM formatted CRLs (Certificate Revocation Lists).
|
|
185
|
+
--server-options-key <value...> Path to an SSL key or content of an SSL key.
|
|
186
|
+
--server-options-key-reset Clear all items provided in 'server.options.key' configuration. Path to an SSL key or content of an SSL
|
|
187
|
+
key.
|
|
188
|
+
--server-options-pfx <value...> Path to an SSL pfx file or content of an SSL pfx file.
|
|
189
|
+
--server-options-pfx-reset Clear all items provided in 'server.options.pfx' configuration. Path to an SSL pfx file or content of
|
|
190
|
+
an SSL pfx file.
|
|
151
191
|
--static [value...] Allows to configure options for serving static files from directory (by default 'public' directory).
|
|
152
192
|
--no-static Negative 'static' option.
|
|
153
193
|
--static-directory <value...> Directory for static contents.
|
|
@@ -199,6 +239,12 @@ npm run serve
|
|
|
199
239
|
NPM will automagically reference the binary in `node_modules` for you, and
|
|
200
240
|
execute the file or command.
|
|
201
241
|
|
|
242
|
+
### With the API
|
|
243
|
+
|
|
244
|
+
While it's recommended to run webpack-dev-server via the CLI, you may also choose to start a server via the API.
|
|
245
|
+
|
|
246
|
+
See the related [API documentation for `webpack-dev-server`](https://webpack.js.org/api/webpack-dev-server/).
|
|
247
|
+
|
|
202
248
|
### The Result
|
|
203
249
|
|
|
204
250
|
Either method will start a server instance and begin listening for connections
|
package/bin/cli-flags.js
CHANGED
|
@@ -174,6 +174,29 @@ module.exports = {
|
|
|
174
174
|
simpleType: "boolean",
|
|
175
175
|
multiple: false,
|
|
176
176
|
},
|
|
177
|
+
"client-reconnect": {
|
|
178
|
+
configs: [
|
|
179
|
+
{
|
|
180
|
+
type: "boolean",
|
|
181
|
+
multiple: false,
|
|
182
|
+
description:
|
|
183
|
+
"Tells dev-server the number of times it should try to reconnect the client.",
|
|
184
|
+
path: "client.reconnect",
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
type: "number",
|
|
188
|
+
multiple: false,
|
|
189
|
+
description:
|
|
190
|
+
"Tells dev-server the number of times it should try to reconnect the client.",
|
|
191
|
+
path: "client.reconnect",
|
|
192
|
+
},
|
|
193
|
+
],
|
|
194
|
+
description:
|
|
195
|
+
"Tells dev-server the number of times it should try to reconnect the client.",
|
|
196
|
+
negatedDescription: "Tells dev-server to not to try to connect the client.",
|
|
197
|
+
simpleType: "string",
|
|
198
|
+
multiple: false,
|
|
199
|
+
},
|
|
177
200
|
"client-web-socket-url": {
|
|
178
201
|
configs: [
|
|
179
202
|
{
|
|
@@ -297,21 +320,30 @@ module.exports = {
|
|
|
297
320
|
"web-socket-server": {
|
|
298
321
|
configs: [
|
|
299
322
|
{
|
|
300
|
-
type: "enum",
|
|
301
|
-
values: [false, "sockjs", "ws"],
|
|
302
|
-
multiple: false,
|
|
303
323
|
description:
|
|
304
324
|
"Allows to set web socket server and options (by default 'ws').",
|
|
325
|
+
multiple: false,
|
|
305
326
|
path: "webSocketServer",
|
|
327
|
+
type: "enum",
|
|
328
|
+
values: [false],
|
|
306
329
|
},
|
|
307
330
|
{
|
|
308
|
-
|
|
331
|
+
description:
|
|
332
|
+
"Allows to set web socket server and options (by default 'ws').",
|
|
309
333
|
multiple: false,
|
|
334
|
+
path: "webSocketServer",
|
|
335
|
+
type: "enum",
|
|
336
|
+
values: ["sockjs", "ws"],
|
|
337
|
+
},
|
|
338
|
+
{
|
|
310
339
|
description:
|
|
311
340
|
"Allows to set web socket server and options (by default 'ws').",
|
|
341
|
+
multiple: false,
|
|
312
342
|
path: "webSocketServer",
|
|
343
|
+
type: "string",
|
|
313
344
|
},
|
|
314
345
|
],
|
|
346
|
+
|
|
315
347
|
description:
|
|
316
348
|
"Allows to set web socket server and options (by default 'ws').",
|
|
317
349
|
simpleType: "string",
|
|
@@ -423,11 +455,13 @@ module.exports = {
|
|
|
423
455
|
{
|
|
424
456
|
type: "string",
|
|
425
457
|
multiple: false,
|
|
426
|
-
description:
|
|
458
|
+
description:
|
|
459
|
+
"Passphrase for a pfx file. Deprecated, it will be removed in favor of the `server.options.passphrase` option.",
|
|
427
460
|
path: "https.passphrase",
|
|
428
461
|
},
|
|
429
462
|
],
|
|
430
|
-
description:
|
|
463
|
+
description:
|
|
464
|
+
"Passphrase for a pfx file. Deprecated, it will be removed in favor of the `server.options.passphrase` option.",
|
|
431
465
|
simpleType: "string",
|
|
432
466
|
multiple: false,
|
|
433
467
|
},
|
|
@@ -436,11 +470,13 @@ module.exports = {
|
|
|
436
470
|
{
|
|
437
471
|
type: "boolean",
|
|
438
472
|
multiple: false,
|
|
439
|
-
description:
|
|
473
|
+
description:
|
|
474
|
+
"Request for an SSL certificate. Deprecated, it will be removed in favor of the `server.options.requestCert` option.",
|
|
440
475
|
path: "https.requestCert",
|
|
441
476
|
},
|
|
442
477
|
],
|
|
443
|
-
description:
|
|
478
|
+
description:
|
|
479
|
+
"Request for an SSL certificate. Deprecated, it will be removed in favor of the `server.options.requestCert` option.",
|
|
444
480
|
negatedDescription: "Does not request for an SSL certificate.",
|
|
445
481
|
simpleType: "boolean",
|
|
446
482
|
multiple: false,
|
|
@@ -451,12 +487,12 @@ module.exports = {
|
|
|
451
487
|
type: "string",
|
|
452
488
|
multiple: true,
|
|
453
489
|
description:
|
|
454
|
-
"Path to an SSL CA certificate or content of an SSL CA certificate.",
|
|
490
|
+
"Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, it will be removed in favor of the `server.options.ca` option.",
|
|
455
491
|
path: "https.ca[]",
|
|
456
492
|
},
|
|
457
493
|
],
|
|
458
494
|
description:
|
|
459
|
-
"Path to an SSL CA certificate or content of an SSL CA certificate.",
|
|
495
|
+
"Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, it will be removed in favor of the `server.options.ca` option.",
|
|
460
496
|
simpleType: "string",
|
|
461
497
|
multiple: true,
|
|
462
498
|
},
|
|
@@ -464,14 +500,14 @@ module.exports = {
|
|
|
464
500
|
configs: [
|
|
465
501
|
{
|
|
466
502
|
description:
|
|
467
|
-
"Clear all items provided in 'https.ca' configuration. Path to an SSL CA certificate or content of an SSL CA certificate.",
|
|
503
|
+
"Clear all items provided in 'https.ca' configuration. Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, it will be removed in favor of the `server.options.ca` option.",
|
|
468
504
|
multiple: false,
|
|
469
505
|
path: "https.ca",
|
|
470
506
|
type: "reset",
|
|
471
507
|
},
|
|
472
508
|
],
|
|
473
509
|
description:
|
|
474
|
-
"Clear all items provided in 'https.ca' configuration. Path to an SSL CA certificate or content of an SSL CA certificate.",
|
|
510
|
+
"Clear all items provided in 'https.ca' configuration. Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, it will be removed in favor of the `server.options.ca` option.",
|
|
475
511
|
multiple: false,
|
|
476
512
|
simpleType: "boolean",
|
|
477
513
|
},
|
|
@@ -481,12 +517,12 @@ module.exports = {
|
|
|
481
517
|
type: "string",
|
|
482
518
|
multiple: true,
|
|
483
519
|
description:
|
|
484
|
-
"Path to an SSL CA certificate or content of an SSL CA certificate.",
|
|
520
|
+
"Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, it will be removed in favor of the `server.options.cacert` option.",
|
|
485
521
|
path: "https.cacert[]",
|
|
486
522
|
},
|
|
487
523
|
],
|
|
488
524
|
description:
|
|
489
|
-
"Path to an SSL CA certificate or content of an SSL CA certificate.",
|
|
525
|
+
"Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, it will be removed in favor of the `server.options.cacert` option.",
|
|
490
526
|
simpleType: "string",
|
|
491
527
|
multiple: true,
|
|
492
528
|
},
|
|
@@ -494,14 +530,14 @@ module.exports = {
|
|
|
494
530
|
configs: [
|
|
495
531
|
{
|
|
496
532
|
description:
|
|
497
|
-
"Clear all items provided in 'https.cacert' configuration. Path to an SSL CA certificate or content of an SSL CA certificate.",
|
|
533
|
+
"Clear all items provided in 'https.cacert' configuration. Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, it will be removed in favor of the `server.options.cacert` option.",
|
|
498
534
|
multiple: false,
|
|
499
535
|
path: "https.cacert",
|
|
500
536
|
type: "reset",
|
|
501
537
|
},
|
|
502
538
|
],
|
|
503
539
|
description:
|
|
504
|
-
"Clear all items provided in 'https.cacert' configuration. Path to an SSL CA certificate or content of an SSL CA certificate.",
|
|
540
|
+
"Clear all items provided in 'https.cacert' configuration. Path to an SSL CA certificate or content of an SSL CA certificate. Deprecated, it will be removed in favor of the `server.options.cacert` option.",
|
|
505
541
|
multiple: false,
|
|
506
542
|
simpleType: "boolean",
|
|
507
543
|
},
|
|
@@ -510,11 +546,13 @@ module.exports = {
|
|
|
510
546
|
{
|
|
511
547
|
type: "string",
|
|
512
548
|
multiple: true,
|
|
513
|
-
description:
|
|
549
|
+
description:
|
|
550
|
+
"Path to an SSL key or content of an SSL key. Deprecated, it will be removed in favor of the `server.options.key` option.",
|
|
514
551
|
path: "https.key[]",
|
|
515
552
|
},
|
|
516
553
|
],
|
|
517
|
-
description:
|
|
554
|
+
description:
|
|
555
|
+
"Path to an SSL key or content of an SSL key. Deprecated, it will be removed in favor of the `server.options.key` option.",
|
|
518
556
|
simpleType: "string",
|
|
519
557
|
multiple: true,
|
|
520
558
|
},
|
|
@@ -522,14 +560,14 @@ module.exports = {
|
|
|
522
560
|
configs: [
|
|
523
561
|
{
|
|
524
562
|
description:
|
|
525
|
-
"Clear all items provided in 'https.key' configuration. Path to an SSL key or content of an SSL key.",
|
|
563
|
+
"Clear all items provided in 'https.key' configuration. Path to an SSL key or content of an SSL key. Deprecated, it will be removed in favor of the `server.options.key` option.",
|
|
526
564
|
multiple: false,
|
|
527
565
|
path: "https.key",
|
|
528
566
|
type: "reset",
|
|
529
567
|
},
|
|
530
568
|
],
|
|
531
569
|
description:
|
|
532
|
-
"Clear all items provided in 'https.key' configuration. Path to an SSL key or content of an SSL key.",
|
|
570
|
+
"Clear all items provided in 'https.key' configuration. Path to an SSL key or content of an SSL key. Deprecated, it will be removed in favor of the `server.options.key` option.",
|
|
533
571
|
multiple: false,
|
|
534
572
|
simpleType: "boolean",
|
|
535
573
|
},
|
|
@@ -538,11 +576,13 @@ module.exports = {
|
|
|
538
576
|
{
|
|
539
577
|
type: "string",
|
|
540
578
|
multiple: true,
|
|
541
|
-
description:
|
|
579
|
+
description:
|
|
580
|
+
"Path to an SSL pfx file or content of an SSL pfx file. Deprecated, it will be removed in favor of the `server.options.pfx` option.",
|
|
542
581
|
path: "https.pfx[]",
|
|
543
582
|
},
|
|
544
583
|
],
|
|
545
|
-
description:
|
|
584
|
+
description:
|
|
585
|
+
"Path to an SSL pfx file or content of an SSL pfx file. Deprecated, it will be removed in favor of the `server.options.pfx` option.",
|
|
546
586
|
simpleType: "string",
|
|
547
587
|
multiple: true,
|
|
548
588
|
},
|
|
@@ -550,14 +590,14 @@ module.exports = {
|
|
|
550
590
|
configs: [
|
|
551
591
|
{
|
|
552
592
|
description:
|
|
553
|
-
"Clear all items provided in 'https.pfx' configuration. Path to an SSL pfx file or content of an SSL pfx file.",
|
|
593
|
+
"Clear all items provided in 'https.pfx' configuration. Path to an SSL pfx file or content of an SSL pfx file. Deprecated, it will be removed in favor of the `server.options.pfx` option.",
|
|
554
594
|
multiple: false,
|
|
555
595
|
path: "https.pfx",
|
|
556
596
|
type: "reset",
|
|
557
597
|
},
|
|
558
598
|
],
|
|
559
599
|
description:
|
|
560
|
-
"Clear all items provided in 'https.pfx' configuration. Path to an SSL pfx file or content of an SSL pfx file.",
|
|
600
|
+
"Clear all items provided in 'https.pfx' configuration. Path to an SSL pfx file or content of an SSL pfx file. Deprecated, it will be removed in favor of the `server.options.pfx` option.",
|
|
561
601
|
multiple: false,
|
|
562
602
|
simpleType: "boolean",
|
|
563
603
|
},
|
|
@@ -567,11 +607,12 @@ module.exports = {
|
|
|
567
607
|
type: "string",
|
|
568
608
|
multiple: true,
|
|
569
609
|
description:
|
|
570
|
-
"Path to an SSL certificate or content of an SSL certificate.",
|
|
610
|
+
"Path to an SSL certificate or content of an SSL certificate. Deprecated, it will be removed in favor of the `server.options.cert` option.",
|
|
571
611
|
path: "https.cert[]",
|
|
572
612
|
},
|
|
573
613
|
],
|
|
574
|
-
description:
|
|
614
|
+
description:
|
|
615
|
+
"Path to an SSL certificate or content of an SSL certificate. Deprecated, it will be removed in favor of the `server.options.cert` option.",
|
|
575
616
|
simpleType: "string",
|
|
576
617
|
multiple: true,
|
|
577
618
|
},
|
|
@@ -579,14 +620,14 @@ module.exports = {
|
|
|
579
620
|
configs: [
|
|
580
621
|
{
|
|
581
622
|
description:
|
|
582
|
-
"Clear all items provided in 'https.cert' configuration. Path to an SSL certificate or content of an SSL certificate.",
|
|
623
|
+
"Clear all items provided in 'https.cert' configuration. Path to an SSL certificate or content of an SSL certificate. Deprecated, it will be removed in favor of the `server.options.cert` option.",
|
|
583
624
|
multiple: false,
|
|
584
625
|
path: "https.cert",
|
|
585
626
|
type: "reset",
|
|
586
627
|
},
|
|
587
628
|
],
|
|
588
629
|
description:
|
|
589
|
-
"Clear all items provided in 'https.cert' configuration. Path to an SSL certificate or content of an SSL certificate.",
|
|
630
|
+
"Clear all items provided in 'https.cert' configuration. Path to an SSL certificate or content of an SSL certificate. Deprecated, it will be removed in favor of the `server.options.cert` option.",
|
|
590
631
|
multiple: false,
|
|
591
632
|
simpleType: "boolean",
|
|
592
633
|
},
|
|
@@ -594,14 +635,14 @@ module.exports = {
|
|
|
594
635
|
configs: [
|
|
595
636
|
{
|
|
596
637
|
description:
|
|
597
|
-
"Path to PEM formatted CRLs (Certificate Revocation Lists) or content of PEM formatted CRLs (Certificate Revocation Lists).",
|
|
638
|
+
"Path to PEM formatted CRLs (Certificate Revocation Lists) or content of PEM formatted CRLs (Certificate Revocation Lists). Deprecated, it will be removed in favor of the `server.options.crl` option.",
|
|
598
639
|
multiple: true,
|
|
599
640
|
path: "https.crl[]",
|
|
600
641
|
type: "string",
|
|
601
642
|
},
|
|
602
643
|
],
|
|
603
644
|
description:
|
|
604
|
-
"Path to PEM formatted CRLs (Certificate Revocation Lists) or content of PEM formatted CRLs (Certificate Revocation Lists).",
|
|
645
|
+
"Path to PEM formatted CRLs (Certificate Revocation Lists) or content of PEM formatted CRLs (Certificate Revocation Lists). Deprecated, it will be removed in favor of the `server.options.crl` option.",
|
|
605
646
|
multiple: true,
|
|
606
647
|
simpleType: "string",
|
|
607
648
|
},
|
|
@@ -609,14 +650,14 @@ module.exports = {
|
|
|
609
650
|
configs: [
|
|
610
651
|
{
|
|
611
652
|
description:
|
|
612
|
-
"Clear all items provided in 'https.crl' configuration. Path to PEM formatted CRLs (Certificate Revocation Lists) or content of PEM formatted CRLs (Certificate Revocation Lists).",
|
|
653
|
+
"Clear all items provided in 'https.crl' configuration. Path to PEM formatted CRLs (Certificate Revocation Lists) or content of PEM formatted CRLs (Certificate Revocation Lists). Deprecated, it will be removed in favor of the `server.options.crl` option.",
|
|
613
654
|
multiple: false,
|
|
614
655
|
path: "https.crl",
|
|
615
656
|
type: "reset",
|
|
616
657
|
},
|
|
617
658
|
],
|
|
618
659
|
description:
|
|
619
|
-
"Clear all items provided in 'https.crl' configuration. Path to PEM formatted CRLs (Certificate Revocation Lists) or content of PEM formatted CRLs (Certificate Revocation Lists).",
|
|
660
|
+
"Clear all items provided in 'https.crl' configuration. Path to PEM formatted CRLs (Certificate Revocation Lists) or content of PEM formatted CRLs (Certificate Revocation Lists). Deprecated, it will be removed in favor of the `server.options.crl` option.",
|
|
620
661
|
multiple: false,
|
|
621
662
|
simpleType: "boolean",
|
|
622
663
|
},
|
|
@@ -820,6 +861,221 @@ module.exports = {
|
|
|
820
861
|
simpleType: "string",
|
|
821
862
|
multiple: false,
|
|
822
863
|
},
|
|
864
|
+
"server-options-ca": {
|
|
865
|
+
configs: [
|
|
866
|
+
{
|
|
867
|
+
description:
|
|
868
|
+
"Path to an SSL CA certificate or content of an SSL CA certificate.",
|
|
869
|
+
multiple: true,
|
|
870
|
+
path: "server.options.ca[]",
|
|
871
|
+
type: "string",
|
|
872
|
+
},
|
|
873
|
+
],
|
|
874
|
+
description:
|
|
875
|
+
"Path to an SSL CA certificate or content of an SSL CA certificate.",
|
|
876
|
+
multiple: true,
|
|
877
|
+
simpleType: "string",
|
|
878
|
+
},
|
|
879
|
+
"server-options-ca-reset": {
|
|
880
|
+
configs: [
|
|
881
|
+
{
|
|
882
|
+
description:
|
|
883
|
+
"Clear all items provided in 'server.options.ca' configuration. Path to an SSL CA certificate or content of an SSL CA certificate.",
|
|
884
|
+
multiple: false,
|
|
885
|
+
path: "server.options.ca",
|
|
886
|
+
type: "reset",
|
|
887
|
+
},
|
|
888
|
+
],
|
|
889
|
+
description:
|
|
890
|
+
"Clear all items provided in 'server.options.ca' configuration. Path to an SSL CA certificate or content of an SSL CA certificate.",
|
|
891
|
+
multiple: false,
|
|
892
|
+
simpleType: "boolean",
|
|
893
|
+
},
|
|
894
|
+
"server-options-cacert": {
|
|
895
|
+
configs: [
|
|
896
|
+
{
|
|
897
|
+
description:
|
|
898
|
+
"Path to an SSL CA certificate or content of an SSL CA certificate.",
|
|
899
|
+
multiple: true,
|
|
900
|
+
path: "server.options.cacert[]",
|
|
901
|
+
type: "string",
|
|
902
|
+
},
|
|
903
|
+
],
|
|
904
|
+
description:
|
|
905
|
+
"Path to an SSL CA certificate or content of an SSL CA certificate.",
|
|
906
|
+
multiple: true,
|
|
907
|
+
simpleType: "string",
|
|
908
|
+
},
|
|
909
|
+
"server-options-cacert-reset": {
|
|
910
|
+
configs: [
|
|
911
|
+
{
|
|
912
|
+
description:
|
|
913
|
+
"Clear all items provided in 'server.options.cacert' configuration. Path to an SSL CA certificate or content of an SSL CA certificate.",
|
|
914
|
+
multiple: false,
|
|
915
|
+
path: "server.options.cacert",
|
|
916
|
+
type: "reset",
|
|
917
|
+
},
|
|
918
|
+
],
|
|
919
|
+
description:
|
|
920
|
+
"Clear all items provided in 'server.options.cacert' configuration. Path to an SSL CA certificate or content of an SSL CA certificate.",
|
|
921
|
+
multiple: false,
|
|
922
|
+
simpleType: "boolean",
|
|
923
|
+
},
|
|
924
|
+
"server-options-cert": {
|
|
925
|
+
configs: [
|
|
926
|
+
{
|
|
927
|
+
description:
|
|
928
|
+
"Path to an SSL certificate or content of an SSL certificate.",
|
|
929
|
+
multiple: true,
|
|
930
|
+
path: "server.options.cert[]",
|
|
931
|
+
type: "string",
|
|
932
|
+
},
|
|
933
|
+
],
|
|
934
|
+
description: "Path to an SSL certificate or content of an SSL certificate.",
|
|
935
|
+
multiple: true,
|
|
936
|
+
simpleType: "string",
|
|
937
|
+
},
|
|
938
|
+
"server-options-cert-reset": {
|
|
939
|
+
configs: [
|
|
940
|
+
{
|
|
941
|
+
description:
|
|
942
|
+
"Clear all items provided in 'server.options.cert' configuration. Path to an SSL certificate or content of an SSL certificate.",
|
|
943
|
+
multiple: false,
|
|
944
|
+
path: "server.options.cert",
|
|
945
|
+
type: "reset",
|
|
946
|
+
},
|
|
947
|
+
],
|
|
948
|
+
description:
|
|
949
|
+
"Clear all items provided in 'server.options.cert' configuration. Path to an SSL certificate or content of an SSL certificate.",
|
|
950
|
+
multiple: false,
|
|
951
|
+
simpleType: "boolean",
|
|
952
|
+
},
|
|
953
|
+
"server-options-crl": {
|
|
954
|
+
configs: [
|
|
955
|
+
{
|
|
956
|
+
description:
|
|
957
|
+
"Path to PEM formatted CRLs (Certificate Revocation Lists) or content of PEM formatted CRLs (Certificate Revocation Lists).",
|
|
958
|
+
multiple: true,
|
|
959
|
+
path: "server.options.crl[]",
|
|
960
|
+
type: "string",
|
|
961
|
+
},
|
|
962
|
+
],
|
|
963
|
+
description:
|
|
964
|
+
"Path to PEM formatted CRLs (Certificate Revocation Lists) or content of PEM formatted CRLs (Certificate Revocation Lists).",
|
|
965
|
+
multiple: true,
|
|
966
|
+
simpleType: "string",
|
|
967
|
+
},
|
|
968
|
+
"server-options-crl-reset": {
|
|
969
|
+
configs: [
|
|
970
|
+
{
|
|
971
|
+
description:
|
|
972
|
+
"Clear all items provided in 'server.options.crl' configuration. Path to PEM formatted CRLs (Certificate Revocation Lists) or content of PEM formatted CRLs (Certificate Revocation Lists).",
|
|
973
|
+
multiple: false,
|
|
974
|
+
path: "server.options.crl",
|
|
975
|
+
type: "reset",
|
|
976
|
+
},
|
|
977
|
+
],
|
|
978
|
+
description:
|
|
979
|
+
"Clear all items provided in 'server.options.crl' configuration. Path to PEM formatted CRLs (Certificate Revocation Lists) or content of PEM formatted CRLs (Certificate Revocation Lists).",
|
|
980
|
+
multiple: false,
|
|
981
|
+
simpleType: "boolean",
|
|
982
|
+
},
|
|
983
|
+
"server-options-key": {
|
|
984
|
+
configs: [
|
|
985
|
+
{
|
|
986
|
+
description: "Path to an SSL key or content of an SSL key.",
|
|
987
|
+
multiple: true,
|
|
988
|
+
path: "server.options.key[]",
|
|
989
|
+
type: "string",
|
|
990
|
+
},
|
|
991
|
+
],
|
|
992
|
+
description: "Path to an SSL key or content of an SSL key.",
|
|
993
|
+
multiple: true,
|
|
994
|
+
simpleType: "string",
|
|
995
|
+
},
|
|
996
|
+
"server-options-key-reset": {
|
|
997
|
+
configs: [
|
|
998
|
+
{
|
|
999
|
+
description:
|
|
1000
|
+
"Clear all items provided in 'server.options.key' configuration. Path to an SSL key or content of an SSL key.",
|
|
1001
|
+
multiple: false,
|
|
1002
|
+
path: "server.options.key",
|
|
1003
|
+
type: "reset",
|
|
1004
|
+
},
|
|
1005
|
+
],
|
|
1006
|
+
description:
|
|
1007
|
+
"Clear all items provided in 'server.options.key' configuration. Path to an SSL key or content of an SSL key.",
|
|
1008
|
+
multiple: false,
|
|
1009
|
+
simpleType: "boolean",
|
|
1010
|
+
},
|
|
1011
|
+
"server-options-passphrase": {
|
|
1012
|
+
configs: [
|
|
1013
|
+
{
|
|
1014
|
+
description: "Passphrase for a pfx file.",
|
|
1015
|
+
multiple: false,
|
|
1016
|
+
path: "server.options.passphrase",
|
|
1017
|
+
type: "string",
|
|
1018
|
+
},
|
|
1019
|
+
],
|
|
1020
|
+
description: "Passphrase for a pfx file.",
|
|
1021
|
+
multiple: false,
|
|
1022
|
+
simpleType: "string",
|
|
1023
|
+
},
|
|
1024
|
+
"server-options-pfx": {
|
|
1025
|
+
configs: [
|
|
1026
|
+
{
|
|
1027
|
+
description: "Path to an SSL pfx file or content of an SSL pfx file.",
|
|
1028
|
+
multiple: true,
|
|
1029
|
+
path: "server.options.pfx[]",
|
|
1030
|
+
type: "string",
|
|
1031
|
+
},
|
|
1032
|
+
],
|
|
1033
|
+
description: "Path to an SSL pfx file or content of an SSL pfx file.",
|
|
1034
|
+
multiple: true,
|
|
1035
|
+
simpleType: "string",
|
|
1036
|
+
},
|
|
1037
|
+
"server-options-pfx-reset": {
|
|
1038
|
+
configs: [
|
|
1039
|
+
{
|
|
1040
|
+
description:
|
|
1041
|
+
"Clear all items provided in 'server.options.pfx' configuration. Path to an SSL pfx file or content of an SSL pfx file.",
|
|
1042
|
+
multiple: false,
|
|
1043
|
+
path: "server.options.pfx",
|
|
1044
|
+
type: "reset",
|
|
1045
|
+
},
|
|
1046
|
+
],
|
|
1047
|
+
description:
|
|
1048
|
+
"Clear all items provided in 'server.options.pfx' configuration. Path to an SSL pfx file or content of an SSL pfx file.",
|
|
1049
|
+
multiple: false,
|
|
1050
|
+
simpleType: "boolean",
|
|
1051
|
+
},
|
|
1052
|
+
"server-options-request-cert": {
|
|
1053
|
+
configs: [
|
|
1054
|
+
{
|
|
1055
|
+
description: "Request for an SSL certificate.",
|
|
1056
|
+
multiple: false,
|
|
1057
|
+
path: "server.options.requestCert",
|
|
1058
|
+
type: "boolean",
|
|
1059
|
+
},
|
|
1060
|
+
],
|
|
1061
|
+
description: "Request for an SSL certificate.",
|
|
1062
|
+
multiple: false,
|
|
1063
|
+
simpleType: "boolean",
|
|
1064
|
+
},
|
|
1065
|
+
"server-type": {
|
|
1066
|
+
configs: [
|
|
1067
|
+
{
|
|
1068
|
+
description: "Allows to set server and options (by default 'http').",
|
|
1069
|
+
multiple: false,
|
|
1070
|
+
path: "server.type",
|
|
1071
|
+
type: "enum",
|
|
1072
|
+
values: ["http", "https", "spdy"],
|
|
1073
|
+
},
|
|
1074
|
+
],
|
|
1075
|
+
description: "Allows to set server and options (by default 'http').",
|
|
1076
|
+
multiple: false,
|
|
1077
|
+
simpleType: "string",
|
|
1078
|
+
},
|
|
823
1079
|
static: {
|
|
824
1080
|
configs: [
|
|
825
1081
|
{
|