mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-19 16:17:56 +00:00
chore(api-key): 创建频率默认值调整为每小时 60 次
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user