error trap if redis is down

This commit is contained in:
Tanya Byrne
2020-08-25 20:17:09 +01:00
parent da043b857c
commit 7f1b29ed08
3 changed files with 8 additions and 11 deletions

View File

@@ -9,12 +9,7 @@
{{ database }}
####################################################################################################
# REDIS Server
{{ redisServer }}
####################################################################################################
# Rate Limiting and caching
# Rate Limiting
{{ rateLimits}}
####################################################################################################

View File

@@ -25,12 +25,10 @@ const defaults = {
STORAGE_LOCAL_DRIVER: 'local',
STORAGE_LOCAL_ROOT: './uploads',
},
redisServer: {
SREDIS_HOST: '127.0.0.1',
SREDIS_PORT: '6379',
SREDIS_PASSWORD: null,
},
rateLimits: {
REDIS_HOST: '127.0.0.1',
REDIS_PORT: '6379',
REDIS_PASSWORD: null,
RATE_LIMIT_TYPE: 'redis',
CONSUMED_POINTS_LIMIT: 5,
CONSUMED_RESET_DURATION: 1,