From 503fec327cc877a0f82149c17d6108e6ac34e3c1 Mon Sep 17 00:00:00 2001 From: Adam K Dean Date: Thu, 1 Mar 2018 11:16:54 +0000 Subject: [PATCH 1/3] fix: remove config validation --- config.js | 1 - 1 file changed, 1 deletion(-) diff --git a/config.js b/config.js index 8bf39f1..0995f2c 100644 --- a/config.js +++ b/config.js @@ -135,7 +135,6 @@ function loadConfig () { } finally { const env = conf.get('env') conf.loadFile('config/config.' + env + '.json') - conf.validate() } } From 77171fafc0599b8760d8f5919fe9987983007d7e Mon Sep 17 00:00:00 2001 From: Adam K Dean Date: Thu, 1 Mar 2018 11:22:23 +0000 Subject: [PATCH 2/3] fix: allow hostnames for queue.host config variable --- config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.js b/config.js index 0995f2c..17a7a3d 100644 --- a/config.js +++ b/config.js @@ -14,8 +14,8 @@ const conf = convict({ }, queue: { host: { - doc: 'The queue server host IP', - format: 'ipaddress', + doc: 'The queue server hostname or IP', + format: '*', default: '127.0.0.1' }, port: { From d64b32181644d413da1a6168c335086d7b5135c5 Mon Sep 17 00:00:00 2001 From: Adam K Dean Date: Thu, 1 Mar 2018 11:24:44 +0000 Subject: [PATCH 3/3] docs: update README for host config format change --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 73ee763..02fb9a3 100644 --- a/readme.md +++ b/readme.md @@ -51,7 +51,7 @@ See the [Why do I need a task queue?](#why-do-i-need-a-task-queue) section for m ## Configuration * **queue** - * **host**: (*ipaddress; default = 127.0.0.1*) The queue server host IP + * **host**: (*string; default = 127.0.0.1*) The queue server hostname or IP * **port**: (*port; default = 6379*) The queue server port number * **broker** * **queue**: (*string; default = ''*) The queue name