forked from laysense/laysite
Load site settings from dotenv and store OAuth credentials
This commit is contained in:
+3
-1
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
use App\Config\Environment;
|
||||
|
||||
return [
|
||||
'type' => 'file',
|
||||
'handler' => Webman\Session\FileSessionHandler::class,
|
||||
@@ -9,6 +11,6 @@ return [
|
||||
'cookie_lifetime' => 0,
|
||||
'cookie_path' => '/admin',
|
||||
'http_only' => true,
|
||||
'secure' => getenv('LAYSITE_SECURE_COOKIES') === '1',
|
||||
'secure' => Environment::get('LAYSITE_SECURE_COOKIES') === '1',
|
||||
'same_site' => 'Lax',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user