@@ -29,7 +29,7 @@ const logInfo = (config) => {
29
29
30
30
eth0 . forEach ( ( it ) => {
31
31
if ( it . family === 'IPv4' ) {
32
- const protocol = config . tlsEnabled ? 'https' : 'http' ;
32
+ const protocol = config . tls ? 'https' : 'http' ;
33
33
const table = new Table ( { head : [ 'Description' , 'Url' ] } ) ;
34
34
routes . forEach ( ( [ desc , url ] ) => {
35
35
table . push ( [ desc , `http://${ it . address } :${ config . apiPort } ${ url } ` ] ) ;
@@ -66,17 +66,16 @@ const args = yargs(hideBin(process.argv))
66
66
describe : 'A directory containing .yml files definitions' ,
67
67
default : process . env . DEPUTY_MOCKS_DIRECTORY || 'mocks' ,
68
68
} )
69
- . option ( 'tls-enabled ' , {
69
+ . option ( 'tls' , {
70
70
type : 'boolean' ,
71
- alias : 'tls' ,
72
71
describe : 'Enable HTTPS, Auto generate ssl certificates' ,
73
- default : process . env . DEPUTY_TSL_ENABLED || false ,
72
+ default : process . env . DEPUTY_TLS || false ,
74
73
} )
75
- . option ( 'tls- domains' , {
74
+ . option ( 'domains' , {
76
75
type : 'string' ,
77
76
alias : 'domains' ,
78
77
describe : 'Specify domain to auto-generate certification for. localhost is auto included' ,
79
- default : process . env . DEPUTY_TSL_DOMAINS ? process . env . DEPUTY_TSL_DOMAINS . split ( ',' ) : [ ] ,
78
+ default : process . env . DEPUTY_DOMAINS || '' ,
80
79
} ) . argv ;
81
80
82
81
const startServer = async ( ) => {
0 commit comments