Update cache/session config

pull/4827/head
Daniel Supernault 2023-12-13 04:46:49 -07:00
rodzic ff92015c87
commit 85839b220a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 23740873EE6F76A1
2 zmienionych plików z 44 dodań i 7 usunięć

Wyświetl plik

@ -36,17 +36,20 @@ return [
'array' => [ 'array' => [
'driver' => 'array', 'driver' => 'array',
'serialize' => false,
], ],
'database' => [ 'database' => [
'driver' => 'database', 'driver' => 'database',
'table' => 'cache', 'table' => 'cache',
'connection' => null, 'connection' => null,
'lock_connection' => null,
], ],
'file' => [ 'file' => [
'driver' => 'file', 'driver' => 'file',
'path' => storage_path('framework/cache/data'), 'path' => storage_path('framework/cache/data'),
'lock_path' => storage_path('framework/cache/data'),
], ],
'memcached' => [ 'memcached' => [
@ -70,6 +73,7 @@ return [
'redis' => [ 'redis' => [
'driver' => 'redis', 'driver' => 'redis',
'lock_connection' => 'default',
'client' => env('REDIS_CLIENT', 'phpredis'), 'client' => env('REDIS_CLIENT', 'phpredis'),
'default' => [ 'default' => [
@ -83,6 +87,25 @@ return [
], ],
'redis:session' => [
'driver' => 'redis',
'connection' => 'default',
'prefix' => 'pf_session',
],
'dynamodb' => [
'driver' => 'dynamodb',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
'table' => env('DYNAMODB_CACHE_TABLE', 'cache'),
'endpoint' => env('DYNAMODB_ENDPOINT'),
],
'octane' => [
'driver' => 'octane',
],
], ],
/* /*
@ -101,4 +124,5 @@ return [
str_slug(env('APP_NAME', 'laravel'), '_').'_cache' str_slug(env('APP_NAME', 'laravel'), '_').'_cache'
), ),
'limiter' => env('CACHE_LIMITER_DRIVER', 'redis'),
]; ];

Wyświetl plik

@ -70,7 +70,7 @@ return [
| |
*/ */
'connection' => null, 'connection' => env('SESSION_CONNECTION'),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@ -96,7 +96,7 @@ return [
| |
*/ */
'store' => null, 'store' => env('SESSION_STORE'),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@ -109,7 +109,7 @@ return [
| |
*/ */
'lottery' => [2, 1000], 'lottery' => [2, 100],
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@ -161,7 +161,7 @@ return [
| |
*/ */
'secure' => true, 'secure' => env('SESSION_SECURE_COOKIE', true),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@ -183,12 +183,25 @@ return [
| |
| This option determines how your cookies behave when cross-site requests | This option determines how your cookies behave when cross-site requests
| take place, and can be used to mitigate CSRF attacks. By default, we | take place, and can be used to mitigate CSRF attacks. By default, we
| do not enable this as other CSRF protection services are in place. | will set this value to "lax" since this is a secure default value.
| |
| Supported: "lax", "strict" | Supported: "lax", "strict", "none", null
| |
*/ */
'same_site' => null, 'same_site' => env('SESSION_SAME_SITE_COOKIES', 'lax'),
/*
|--------------------------------------------------------------------------
| Partitioned Cookies
|--------------------------------------------------------------------------
|
| Setting this value to true will tie the cookie to the top-level site for
| a cross-site context. Partitioned cookies are accepted by the browser
| when flagged "secure" and the Same-Site attribute is set to "none".
|
*/
'partitioned' => false,
]; ];