1
0
mirror of https://github.com/Kovah/LinkAce.git synced 2025-04-16 12:48:32 +02:00

Update configuration to support Redis sockets (#195)

This commit is contained in:
Kovah 2021-03-22 22:03:38 +01:00
parent c5030c8c82
commit 343a4423e2
No known key found for this signature in database
GPG Key ID: AAAA031BA9830D7B
5 changed files with 39 additions and 0 deletions

View File

@ -83,3 +83,11 @@ LOG_CHANNEL=stack
BROADCAST_DRIVER=log
CACHE_DRIVER=redis
QUEUE_DRIVER=database
## Using Redis sockets
# If you want to use Redis via a Unix socket, you can remove the hash before the following lines, but remove one before
# the "CACHE_DRIVER" line above. Also, set a proper path to your Redis socket.
#CACHE_DRIVER=redis-socket
#SESSION_CONNECTION=redis-socket
#REDIS_SCHEME=unix
#REDIS_PATH=/path/to/redis.sock

View File

@ -83,3 +83,11 @@ LOG_CHANNEL=stack
BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_DRIVER=database
## Using Redis sockets
# If you want to use Redis via a Unix socket, you can remove the hash before the following lines, but remove one before
# the "CACHE_DRIVER" line above. Also, set a proper path to your Redis socket.
#CACHE_DRIVER=redis-socket
#SESSION_CONNECTION=redis-socket
#REDIS_SCHEME=unix
#REDIS_PATH=/path/to/redis.sock

View File

@ -83,3 +83,11 @@ LOG_CHANNEL=stack
BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_DRIVER=database
## Using Redis sockets
# If you want to use Redis via a Unix socket, you can remove the hash before the following lines, but remove one before
# the "CACHE_DRIVER" line above. Also, set a proper path to your Redis socket.
#CACHE_DRIVER=redis-socket
#SESSION_CONNECTION=redis-socket
#REDIS_SCHEME=unix
#REDIS_PATH=/path/to/redis.sock

View File

@ -75,6 +75,11 @@ return [
'connection' => 'default',
],
'redis-socket' => [
'driver' => 'redis',
'connection' => 'redis-socket',
],
],
/*

View File

@ -144,6 +144,16 @@ return [
'database' => env('REDIS_CACHE_DB', 1),
],
'redis-socket' => [
'scheme' => env('REDIS_SCHEME'),
'path' => env('REDIS_PATH'),
'url' => env('REDIS_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
'database' => env('REDIS_DB', 0),
],
],
];