mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-30 04:03:40 +01:00
shuffle things around
This commit is contained in:
parent
f7fa128efa
commit
b9c6660e08
2 changed files with 2 additions and 60 deletions
|
|
@ -69,7 +69,6 @@ namespace MareSynchronosServer
|
|||
.AddScheme<AuthenticationSchemeOptions, SecretKeyAuthenticationHandler>(SecretKeyAuthenticationHandler.AuthScheme, options => { });
|
||||
services.AddAuthorization(options => options.FallbackPolicy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build());
|
||||
|
||||
services.AddSingleton<IRateLimitConfiguration, RateLimitConfiguration>();
|
||||
|
||||
services.AddSignalR(hubOptions =>
|
||||
{
|
||||
|
|
@ -77,8 +76,9 @@ 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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue