2020-05-25 15:45:26 -05:00
|
|
|
/*
|
|
|
|
|
* Configuration for Flitter-Redis.
|
|
|
|
|
* You can access the IORedis instance on the redis service:
|
|
|
|
|
* app.di().service('redis').client()
|
|
|
|
|
*/
|
|
|
|
|
const redis_config = {
|
|
|
|
|
|
|
|
|
|
// How to connect to the server
|
|
|
|
|
// See IORedis docs for config options:
|
|
|
|
|
// https://github.com/luin/ioredis#connect-to-redis
|
|
|
|
|
server: {
|
|
|
|
|
host: env('REDIS_HOST', 'localhost'),
|
2022-06-25 20:55:06 -05:00
|
|
|
password: env('REDIS_PASS'),
|
2020-05-25 15:45:26 -05:00
|
|
|
port: env('REDIS_PORT', 6379),
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
module.exports = exports = redis_config
|