update no-config defaults

This commit is contained in:
AJ ONeal 2017-05-17 14:24:19 -05:00
parent 15c80dab14
commit e386b19e3f
1 changed files with 3 additions and 2 deletions

View File

@ -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(); })