Revert "shuffle things around"

This reverts commit b9c6660e08.
This commit is contained in:
Stanley Dimant
2022-08-03 23:17:17 +02:00
parent ccb9478f70
commit 6dafbe77ba
2 changed files with 60 additions and 2 deletions

View File

@@ -68,6 +68,7 @@ namespace MareSynchronosServer
.AddScheme<AuthenticationSchemeOptions, SecretKeyAuthenticationHandler>(SecretKeyAuthenticationHandler.AuthScheme, options => { });
services.AddAuthorization(options => options.FallbackPolicy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build());
services.AddSingleton<IRateLimitConfiguration, RateLimitConfiguration>();
services.AddSignalR(hubOptions =>
{
@@ -75,9 +76,8 @@ namespace MareSynchronosServer
hubOptions.EnableDetailedErrors = true;
hubOptions.MaximumParallelInvocationsPerClient = 10;
hubOptions.StreamBufferCapacity = 200;
hubOptions.AddFilter<SignalRLimitFilter>();
});
services.AddSingleton<IRateLimitConfiguration, RateLimitConfiguration>();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.