feat: 登录有效期24小时 + Cloudflare Turnstile 人机验证
- jwt_ttl 7200 → 86400 (24h) - 管理登录/代理登录/代理注册 接入 Turnstile - 前端 TurnstileWidget 组件, 未完成验证不可提交 - 密钥通过 env TURNSTILE_SITE_KEY/SECRET_KEY 配置
This commit is contained in:
1 parent
5b73d0921d
commit
e90ade2ba0
10 files changed
+230
-12
No files matched your search
@@ -8,7 +8,7 @@ return [
|
||||
'debug' => env('APP_DEBUG', false),
|
||||
'timezone' => 'Asia/Shanghai',
|
||||
'jwt_secret' => env('JWT_SECRET', ''),
|
||||
'jwt_ttl' => 7200, // Token有效期(秒)
|
||||
'jwt_ttl' => 86400, // Token有效期(秒)= 24小时
|
||||
'jwt_refresh_ttl' => 1209600, // 刷新Token有效期(秒)
|
||||
'rate_limit' => [
|
||||
'api' => 60, // 普通API每分钟请求数
|
||||
@@ -28,4 +28,8 @@ return [
|
||||
'return_url' => env('APP_URL', '') . '/#/result',
|
||||
],
|
||||
'allowed_origins' => ['*'],
|
||||
'turnstile' => [
|
||||
'site_key' => env('TURNSTILE_SITE_KEY', ''),
|
||||
'secret_key' => env('TURNSTILE_SECRET_KEY', ''),
|
||||
],
|
||||
];
|
||||
Reference in new issue
Block a user