mirror of
https://github.com/239573049/FastGateway.git
synced 2026-10-17 05:20:30 +08:00
feat: 添加请求超时功能,增强服务稳定性
This commit is contained in:
@@ -247,6 +247,7 @@ public static class Gateway
|
||||
if (server.StaticCompress)
|
||||
builder.Services.AddResponseCompression();
|
||||
|
||||
builder.Services.AddRequestTimeouts();
|
||||
|
||||
builder.Services
|
||||
.AddReverseProxy()
|
||||
@@ -326,6 +327,7 @@ public static class Gateway
|
||||
|
||||
app.UseInitGatewayMiddleware();
|
||||
|
||||
app.UseRequestTimeouts();
|
||||
|
||||
app.UseRateLimitMiddleware(rateLimits);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user