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