aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorRubén Beltrán del Río <ben@nsovocal.com>2017-02-18 23:14:20 -0600
committerGitHub <noreply@github.com>2017-02-18 23:14:20 -0600
commit7404eac982a0d928866aeddaa1a0ea4d1f2d3870 (patch)
tree3834c528f1f88b52fcb33cc5025c6c7522bf21c7 /config
parent5e981bca19ace2a7704f267175b6aa368e63bda0 (diff)
Handle Menus and Store / Recall recordings (#2)
* Update calls for menu parsing in paw * Add twilio and bodyparser dependencies * Integrate menu routes * Add redirects to all menu selections. * Add pause to menu message * Update paw to handle all recordings cases * Add rec menu handler, recordings dummy handler * Add redis related configs * Add redis node module * Add missing comma to config * Remove dangling comma from config * Update paw to validate input * Add post validation dependencies * Update yarn lock * Store recordings in redis * Say post id in spanish * Use the word for the pound sign * Use a timestamp shifted by 2 and truncated to 10
Diffstat (limited to 'config')
-rw-r--r--config/config.js17
-rw-r--r--config/env.dist1
2 files changed, 17 insertions, 1 deletions
diff --git a/config/config.js b/config/config.js
index 5b29ec4..16e9a9f 100644
--- a/config/config.js
+++ b/config/config.js
@@ -12,7 +12,22 @@ const internals = {};
* @memberof DeadDrop
* @typedef {object} tConfiguration
* @property {number} [port=1988] the port where the app will listen on
+ * @property {DeadDrop.tRedisConfiguration} redis the configuration to
+ * connect to the redis server
*/
module.exports = internals.Config = {
- port: Getenv.int('DEAD_DROP_PORT', 1988)
+ port: Getenv.int('DEAD_DROP_PORT', 1988),
+
+ /**
+ * Information required to connect to the redis server
+ *
+ * @memberof DeadDrop
+ * @typedef {object} tRedisConfiguration
+ * @property {string} host the location of the redis host
+ * @property {string} [post=6379] port where redis server is listening
+ */
+ redis: {
+ host: Getenv('DEAD_DROP_REDIS_HOST'),
+ port: Getenv.int('DEAD_DROP_REDIS_PORT', 6379)
+ }
};
diff --git a/config/env.dist b/config/env.dist
index e69de29..11f79f1 100644
--- a/config/env.dist
+++ b/config/env.dist
@@ -0,0 +1 @@
+DEAD_DROP_REDIS_HOST=location_of_redis_server