1
0
Fork 0
forked from mirror/pixelfed

Update session config, added secure defaults, longer session lifetime and changed the default driver to database

This commit is contained in:
Daniel Supernault 2019-09-01 18:31:43 -06:00
parent d186dd6356
commit 2fd193edb3
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -16,7 +16,7 @@ return [
| |
*/ */
'driver' => env('SESSION_DRIVER', 'file'), 'driver' => 'database',
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@ -29,7 +29,7 @@ return [
| |
*/ */
'lifetime' => env('SESSION_LIFETIME', 120), 'lifetime' => env('SESSION_LIFETIME', 2880),
'expire_on_close' => false, 'expire_on_close' => false,
@ -122,10 +122,7 @@ return [
| |
*/ */
'cookie' => env( 'cookie' => 'pxfs',
'SESSION_COOKIE',
str_slug(env('APP_NAME', 'laravel'), '_').'_session'
),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@ -151,7 +148,7 @@ return [
| |
*/ */
'domain' => env('SESSION_DOMAIN', null), 'domain' => env('SESSION_DOMAIN', env('APP_DOMAIN', null)),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@ -164,7 +161,7 @@ return [
| |
*/ */
'secure' => env('SESSION_SECURE_COOKIE', false), 'secure' => true,
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@ -192,6 +189,6 @@ return [
| |
*/ */
'same_site' => null, 'same_site' => 'strict',
]; ];