This commit is contained in:
2025-11-22 15:58:30 +08:00
parent 8d0f1e6aa3
commit 4c16e7a333
3 changed files with 3 additions and 83 deletions

View File

@@ -117,11 +117,9 @@ type JWTConfig struct {
// RateLimitConfig 限流配置
type RateLimitConfig struct {
Requests int `mapstructure:"requests"`
Window time.Duration `mapstructure:"window"`
Burst int `mapstructure:"burst"`
ExcludePaths []string `mapstructure:"exclude_paths"` // 排除频率限制的路径
ExcludeDomains []string `mapstructure:"exclude_domains"` // 排除频率限制的域名
Requests int `mapstructure:"requests"`
Window time.Duration `mapstructure:"window"`
Burst int `mapstructure:"burst"`
}
// DailyRateLimitConfig 每日限流配置