mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix #3642
This commit is contained in:
parent
3fa5694bb8
commit
2a3651013c
11
.env.example
11
.env.example
@ -93,9 +93,18 @@ SESSION_DRIVER=file
|
|||||||
# If you set either of these to 'redis', you might want to update these settings too
|
# If you set either of these to 'redis', you might want to update these settings too
|
||||||
# If you use Docker or similar, you can set REDIS_HOST_FILE, REDIS_PASSWORD_FILE or
|
# If you use Docker or similar, you can set REDIS_HOST_FILE, REDIS_PASSWORD_FILE or
|
||||||
# REDIS_PORT_FILE to set the value from a file instead of from an environment variable
|
# REDIS_PORT_FILE to set the value from a file instead of from an environment variable
|
||||||
|
|
||||||
|
# can be tcp, unix or http
|
||||||
|
REDIS_SCHEME=tcp
|
||||||
|
|
||||||
|
# use only when using 'unix' for REDIS_SCHEME. Leave empty otherwise.
|
||||||
|
REDIS_PATH=
|
||||||
|
|
||||||
|
# use only when using 'tcp' or 'http' for REDIS_SCHEME. Leave empty otherwise.
|
||||||
REDIS_HOST=127.0.0.1
|
REDIS_HOST=127.0.0.1
|
||||||
REDIS_PASSWORD=null
|
|
||||||
REDIS_PORT=6379
|
REDIS_PORT=6379
|
||||||
|
|
||||||
|
REDIS_PASSWORD=null
|
||||||
# always use quotes and make sure redis db "0" and "1" exists. Otherwise change accordingly.
|
# always use quotes and make sure redis db "0" and "1" exists. Otherwise change accordingly.
|
||||||
REDIS_DB="0"
|
REDIS_DB="0"
|
||||||
REDIS_CACHE_DB="1"
|
REDIS_CACHE_DB="1"
|
||||||
|
@ -144,17 +144,21 @@ return [
|
|||||||
'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_') . '_database_'),
|
'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_') . '_database_'),
|
||||||
],
|
],
|
||||||
'default' => [
|
'default' => [
|
||||||
'url' => env('REDIS_URL'),
|
'scheme' => envNonEmpty('REDIS_SCHEME', 'tcp'),
|
||||||
'host' => env('REDIS_HOST', '127.0.0.1'),
|
'url' => envNonEmpty('REDIS_URL'),
|
||||||
|
'path' => envNonEmpty('REDIS_PATH'),
|
||||||
|
'host' => envNonEmpty('REDIS_HOST', '127.0.0.1'),
|
||||||
|
'port' => envNonEmpty('REDIS_PORT', 6379),
|
||||||
'password' => env('REDIS_PASSWORD', null),
|
'password' => env('REDIS_PASSWORD', null),
|
||||||
'port' => env('REDIS_PORT', 6379),
|
|
||||||
'database' => env('REDIS_DB', '0'),
|
'database' => env('REDIS_DB', '0'),
|
||||||
],
|
],
|
||||||
'cache' => [
|
'cache' => [
|
||||||
'url' => env('REDIS_URL'),
|
'scheme' => envNonEmpty('REDIS_SCHEME', 'tcp'),
|
||||||
'host' => env('REDIS_HOST', '127.0.0.1'),
|
'url' => envNonEmpty('REDIS_URL'),
|
||||||
|
'path' => envNonEmpty('REDIS_PATH'),
|
||||||
|
'host' => envNonEmpty('REDIS_HOST', '127.0.0.1'),
|
||||||
|
'port' => envNonEmpty('REDIS_PORT', 6379),
|
||||||
'password' => env('REDIS_PASSWORD', null),
|
'password' => env('REDIS_PASSWORD', null),
|
||||||
'port' => env('REDIS_PORT', 6379),
|
|
||||||
'database' => env('REDIS_CACHE_DB', '1'),
|
'database' => env('REDIS_CACHE_DB', '1'),
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user