add env for redis pwd and port
This commit is contained in:
parent
0c1ce9f598
commit
e2dde364eb
2 changed files with 12 additions and 0 deletions
|
@ -64,6 +64,16 @@ const conf = convict({
|
|||
default: 'localhost',
|
||||
env: 'REDIS_HOST'
|
||||
},
|
||||
redis_port: {
|
||||
format: Number,
|
||||
default: 6379,
|
||||
env: 'REDIS_PORT'
|
||||
},
|
||||
redis_password: {
|
||||
format: String,
|
||||
default: '',
|
||||
env: 'REDIS_PASSWORD'
|
||||
},
|
||||
redis_event_expire: {
|
||||
format: Boolean,
|
||||
default: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue