From 017bbcb901c6f030992a84fffad2f309d20bb7a6 Mon Sep 17 00:00:00 2001 From: shaw Date: Wed, 30 Sep 2026 13:55:37 +0800 Subject: [PATCH] =?UTF-8?q?chore(api-key):=20=E5=88=9B=E5=BB=BA=E9=A2=91?= =?UTF-8?q?=E7=8E=87=E9=BB=98=E8=AE=A4=E5=80=BC=E8=B0=83=E6=95=B4=E4=B8=BA?= =?UTF-8?q?=E6=AF=8F=E5=B0=8F=E6=97=B6=2060=20=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/internal/config/config.go | 2 +- deploy/config.example.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/internal/config/config.go b/backend/internal/config/config.go index 1f9a9bc655..418e4b340a 100644 --- a/backend/internal/config/config.go +++ b/backend/internal/config/config.go @@ -2342,7 +2342,7 @@ func setDefaults() { viper.SetDefault("api_key_auth_cache.invalid_abuse.block_seconds", 60) viper.SetDefault("api_key_auth_cache.invalid_abuse.capacity", 16384) viper.SetDefault("api_key_create.max_active_per_user", 200) - viper.SetDefault("api_key_create.max_per_user_per_hour", 20) + viper.SetDefault("api_key_create.max_per_user_per_hour", 60) // Subscription auth L1 cache viper.SetDefault("subscription_cache.l1_size", 16384) diff --git a/deploy/config.example.yaml b/deploy/config.example.yaml index af892329c3..0afbc4e08d 100644 --- a/deploy/config.example.yaml +++ b/deploy/config.example.yaml @@ -728,7 +728,7 @@ api_key_create: # Maximum API key creations per user per hour (custom and generated keys). # Deleting a key does not refund the count, which blocks delete/recreate loops. # 单个用户每小时可创建的 API Key 次数(自定义与自动生成均计入);删除 Key 不返还次数,阻断删建循环 - max_per_user_per_hour: 20 + max_per_user_per_hour: 60 # ============================================================================= # Dashboard Cache Configuration