feat : common redis cache and common logger

This commit is contained in:
2025-09-14 15:58:45 +08:00
parent 48ad2ebd1b
commit 0db9995c19
15 changed files with 640 additions and 14 deletions

View File

@@ -39,9 +39,9 @@ return [
// jwt 签名key
'key' => InMemory::base64Encoded(env('JWT_SECRET')),
// token过期时间单位为秒
'ttl' => (int) env('ADMIN_JWT_TTL', 3),
'ttl' => (int) env('ADMIN_JWT_TTL', 3600),
// 刷新token过期时间单位为秒
'refresh_ttl' => (int) env('ADMIN_JWT_REFRESH_TTL', 10),
'refresh_ttl' => (int) env('ADMIN_JWT_REFRESH_TTL', 7200),
'claims' => [
// 默认的jwt claims
RegisteredClaims::ISSUER => (string) env('APP_NAME') .'_admin',