From d5f411d7331bdc2fad52cf0ceb9438ad35735b47 Mon Sep 17 00:00:00 2001 From: kodehat Date: Mon, 14 Sep 2020 14:18:18 +0200 Subject: [PATCH] Add Redis UNIX socket support besides to TCP --- config/database.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/database.php b/config/database.php index 63b0b9cb6..32fca7581 100644 --- a/config/database.php +++ b/config/database.php @@ -96,6 +96,8 @@ return [ 'client' => 'predis', 'default' => [ + 'scheme' => env('REDIS_SCHEME', 'tcp'), + 'path' => env('REDIS_PATH', '/run/redis/redis.sock'), 'host' => env('REDIS_HOST', 'localhost'), 'password' => env('REDIS_PASSWORD', null), 'port' => env('REDIS_PORT', 6379), @@ -103,6 +105,8 @@ return [ ], 'sessions' => [ + 'scheme' => env('REDIS_SCHEME', 'tcp'), + 'path' => env('REDIS_PATH', '/run/redis/redis.sock'), 'host' => env('REDIS_HOST', 'localhost'), 'password' => env('REDIS_PASSWORD', null), 'port' => env('REDIS_PORT', 6379),