修复认证与基础安全链路

This commit is contained in:
2026-04-19 14:42:42 +08:00
parent bd97ed0b73
commit 5ce83a769d
13 changed files with 636 additions and 55 deletions
+15
View File
@@ -54,6 +54,21 @@ return [
'url' => env('APP_URL', 'http://localhost'),
/*
|--------------------------------------------------------------------------
| Trusted Proxies
|--------------------------------------------------------------------------
|
| 仅这些反向代理 / CDN 节点允许透传真实客户端 IP。
| 生产环境请将此值配置为实际反向代理 IP CIDR,多个值用逗号分隔。
|
*/
'trusted_proxies' => array_values(array_filter(array_map(
static fn (string $proxy): string => trim($proxy),
explode(',', (string) env('TRUSTED_PROXIES', '127.0.0.1,::1'))
))),
/*
|--------------------------------------------------------------------------
| Application Timezone