🗑️ Remove per service rate-limiting due to gateway covered it

This commit is contained in:
2025-10-22 22:10:37 +08:00
parent ff03584518
commit cf87fdfb49
8 changed files with 1 additions and 59 deletions

View File

@@ -43,19 +43,6 @@ public static class ServiceCollectionExtensions
return services;
}
public static IServiceCollection AddAppRateLimiting(this IServiceCollection services)
{
services.AddRateLimiter(o => o.AddFixedWindowLimiter(policyName: "fixed", opts =>
{
opts.Window = TimeSpan.FromMinutes(1);
opts.PermitLimit = 120;
opts.QueueLimit = 2;
opts.QueueProcessingOrder = QueueProcessingOrder.OldestFirst;
}));
return services;
}
public static IServiceCollection AddAppAuthentication(this IServiceCollection services)
{
services.AddAuthorization();