]> git.r.bdr.sh - rbdr/dead-drop/blobdiff - config/config.js
Merge branch 'release/1.0.0'
[rbdr/dead-drop] / config / config.js
index 5b29ec466a00252707a6db305c900026917e1eb3..b1a1fac1fd7f5da09c06a3fb92d2456b5225ef11 100644 (file)
@@ -12,7 +12,24 @@ const internals = {};
  * @memberof DeadDrop
  * @typedef {object} tConfiguration
  * @property {number} [port=1988] the port where the app will listen on
+ * @property {string} twilioAccountSid the twilio account sid used to authorize calls
+ * @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),
+  twilioAccountSid: Getenv('DEAD_DROP_TWILIO_ACCOUNT_SID'),
+
+  /**
+   * 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)
+  }
 };