Update cache/session config

This commit is contained in:
Daniel Supernault 2023-12-13 04:46:49 -07:00
parent ff92015c87
commit 85839b220a
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1
2 changed files with 44 additions and 7 deletions

View file

@ -36,17 +36,20 @@ return [
'array' => [
'driver' => 'array',
'serialize' => false,
],
'database' => [
'driver' => 'database',
'table' => 'cache',
'connection' => null,
'lock_connection' => null,
],
'file' => [
'driver' => 'file',
'path' => storage_path('framework/cache/data'),
'lock_path' => storage_path('framework/cache/data'),
],
'memcached' => [
@ -70,6 +73,7 @@ return [
'redis' => [
'driver' => 'redis',
'lock_connection' => 'default',
'client' => env('REDIS_CLIENT', 'phpredis'),
'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'
),
'limiter' => env('CACHE_LIMITER_DRIVER', 'redis'),
];

View file

@ -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
| 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,
];