From 7404eac982a0d928866aeddaa1a0ea4d1f2d3870 Mon Sep 17 00:00:00 2001 From: Rubén Beltrán del Río Date: Sat, 18 Feb 2017 23:14:20 -0600 Subject: 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 --- config/config.js | 17 ++++++++++++++++- config/env.dist | 1 + 2 files changed, 17 insertions(+), 1 deletion(-) (limited to 'config') 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 -- cgit