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
+4 -2
View File
@@ -1,10 +1,12 @@
<?php
use App\Config\Environment;
return [
'webman' => [
'handler' => Webman\App::class,
'listen' => getenv('LAYSITE_LISTEN') ?: 'http://127.0.0.1:8787',
'count' => max(1, (int) (getenv('LAYSITE_WORKERS') ?: 2)),
'listen' => Environment::get('LAYSITE_LISTEN') ?: 'http://127.0.0.1:8787',
'count' => max(1, (int) (Environment::get('LAYSITE_WORKERS') ?: 2)),
'constructor' => [
'requestClass' => App\Http\Request::class,
'logger' => support\Log::channel('default'),