Load site settings from dotenv and store OAuth credentials

This commit is contained in:
2026-11-23 16:53:29 +08:00
parent 1bb0554608
commit 01ede89dcd
27 changed files with 730 additions and 76 deletions
+3 -1
View File
@@ -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',
];