Skip to content
This repository has been archived by the owner on Jun 11, 2020. It is now read-only.

Commit

Permalink
Feature/enable redis use (#987)
Browse files Browse the repository at this point in the history
* use redis for session store

* update redis client details

* change redis code

* try remolving auth

* update tf for redis

* changed redis product back

* update redis client options to use tls
  • Loading branch information
smogese authored Jun 17, 2019
1 parent f3767ad commit 5995381
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,17 @@ const session = require('express-session');
const redis = require('redis');
const redisStore = require('connect-redis')(session);

const redisClient = redis.createClient({
host: process.env.REDIS_HOST,
port: process.env.REDIS_PORT,
password: process.env.REDIS_PASSWORD
});

const tlsOptions = {
password: process.env.REDIS_PASSWORD,
tls: true
};

const redisClient = redis.createClient(
process.env.REDIS_PORT,
process.env.REDIS_HOST,
tlsOptions,
);


redisClient.on('error', err => {
Expand Down

0 comments on commit 5995381

Please sign in to comment.