Skip to content

Commit

Permalink
Add null check for REDIS_PASSWORD
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian committed Feb 15, 2021
1 parent 5f14d32 commit faf3944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.php.docker
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ $app['debug'] = false;
$app['http_cache'] = false;
$app['buzz.client'] = new Buzz\Client\Curl();
$app['monolog.level'] = Monolog\Logger::ERROR;
$app['redis.config'] = getenv('REDIS_HOST') ? ['host' => getenv('REDIS_HOST'), 'port' => getenv('REDIS_PORT'), 'password' => getenv('REDIS_PASSWORD')] : [];
$app['redis.config'] = getenv('REDIS_HOST') ? ['host' => getenv('REDIS_HOST'), 'port' => getenv('REDIS_PORT'), 'password' => getenv('REDIS_PASSWORD') ?: null] : [];
$app['stats.config'] = getenv('STATS_ENABLED') ? ['enabled' => true] : ['enabled' => false];
$app['rate_limiting.config'] = getenv('RATE_LIMITING_ENABLED') ? ['enabled' => true, 'limit' => 3] : ['enabled' => false, 'limit' => 3];
$app['proxy'] = false;
Expand Down

0 comments on commit faf3944

Please sign in to comment.