From e386b19e3f7acd0d71a4e1c826a8b5c3e516dcbf Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 17 May 2017 14:24:19 -0500 Subject: [PATCH] update no-config defaults --- bin/goldilocks.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/goldilocks.js b/bin/goldilocks.js index 90ec4ce..b19d5e0 100755 --- a/bin/goldilocks.js +++ b/bin/goldilocks.js @@ -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(); })