diff options
Diffstat (limited to 'config')
| -rw-r--r-- | config/config.js | 17 | ||||
| -rw-r--r-- | config/env.dist | 1 |
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 |