From 8599d383df75755c6f29031f92b91e4b5dde5aee Mon Sep 17 00:00:00 2001 From: tigerbot Date: Mon, 15 May 2017 16:16:15 -0600 Subject: [PATCH] changed example config to use snake_case --- bin/goldilocks.js | 4 ++++ goldilocks.example.yml | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/goldilocks.js b/bin/goldilocks.js index d7d4a51..c981394 100755 --- a/bin/goldilocks.js +++ b/bin/goldilocks.js @@ -66,6 +66,10 @@ function readConfigAndRun(args) { ); } } + + var recase = require('recase').create({}); + config = recase.camelCopy(config); + if (!config.dns) { config.dns = { proxy: { port: 3053 } }; } diff --git a/goldilocks.example.yml b/goldilocks.example.yml index ef5ac96..f7722a4 100644 --- a/goldilocks.example.yml +++ b/goldilocks.example.yml @@ -18,9 +18,9 @@ tls: address: '127.0.0.1:5443' http: - trustProxy: true - allowInsecure: false - primaryDomain: localhost.foo.daplie.me + trust_proxy: true + allow_insecure: false + primary_domain: localhost.foo.daplie.me modules: - name: proxy domains: