File tree 2 files changed +12
-6
lines changed
2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,12 @@ export default Joi.object({
10
10
info : Joi . boolean ( ) ,
11
11
quiet : Joi . boolean ( ) ,
12
12
https : Joi . boolean ( ) ,
13
- key : Joi . string ( ) ,
14
- cert : Joi . string ( ) ,
15
- cacert : Joi . string ( ) ,
13
+ key : Joi . binary ( ) ,
14
+ cert : Joi . binary ( ) ,
15
+ ca : [
16
+ Joi . binary ( ) ,
17
+ Joi . array ( ) . items ( Joi . binary ( ) ) ,
18
+ ] ,
16
19
contentBase : [
17
20
Joi . object ( ) ,
18
21
Joi . array ( ) ,
Original file line number Diff line number Diff line change @@ -10,9 +10,12 @@ const validModuleConfigs = [
10
10
{ input : { info : true } } ,
11
11
{ input : { quiet : true } } ,
12
12
{ input : { https : true } } ,
13
- { input : { key : '/path/to/key' } } ,
14
- { input : { cert : 'path/to/cert' } } ,
15
- { input : { cacert : 'path/to/cacert' } } ,
13
+ { input : { key : 'key contents' } } ,
14
+ { input : { key : new Buffer ( 'key contents' ) } } ,
15
+ { input : { cert : 'cert contents' } } ,
16
+ { input : { cert : new Buffer ( 'cert contents' ) } } ,
17
+ { input : { ca : 'ca contents' } } ,
18
+ { input : { ca : [ 'ca contents 1' , new Buffer ( 'ca contents 2' ) ] } } ,
16
19
{ input : { contentBase : '/content/base' } } ,
17
20
{ input : { contentBase : { target : '/content/base/' } } } ,
18
21
{ input : { contentBase : [ '/content/base/' ] } } ,
You can’t perform that action at this time.
0 commit comments