forked from coolaj86/goldilocks.js
update no-config defaults
This commit is contained in:
parent
15c80dab14
commit
e386b19e3f
|
@ -71,15 +71,16 @@ function readConfigAndRun(args) {
|
|||
config = recase.camelCopy(config);
|
||||
|
||||
if (!config.dns) {
|
||||
config.dns = { proxy: { port: 3053 } };
|
||||
config.dns = { modules: { name: 'proxy', port: 3053 } };
|
||||
}
|
||||
if (!config.tcp) {
|
||||
config.tcp = {};
|
||||
}
|
||||
if (!config.http) {
|
||||
config.http = { proxy: { port: 3000 } };
|
||||
config.http = { modules: { name: 'proxy', port: 3000 } };
|
||||
}
|
||||
if (!config.tls) {
|
||||
console.log("TODO: tls: { modules: { name: 'acme', email: 'foo@bar.com', domains: [ '*' ] } }");
|
||||
config.tls = {
|
||||
agreeTos: args.agreeTos || args.agree || args['agree-tos']
|
||||
, servernames: (args.servernames||'').split(',').filter(Boolean).map(function (str) { return str.toLowerCase(); })
|
||||
|
|
Loading…
Reference in New Issue