add streaming for uploads/aborting, whitelist changes and so on

This commit is contained in:
Stanley Dimant
2022-06-20 00:49:57 +02:00
parent 2b53c6a824
commit 9fa6517486
3 changed files with 139 additions and 40 deletions

View File

@@ -49,7 +49,9 @@ namespace MareSynchronosServer
opts.MimeTypes = ResponseCompressionDefaults.MimeTypes.Concat(new[] { "application/octet-stream" });
});
services.AddDbContext<MareDbContext>(options =>
options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));
{
options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection"));
});
services.AddDatabaseDeveloperPageExceptionFilter();
services.AddAuthentication(options => options.DefaultScheme = SecretKeyAuthenticationHandler.AUTH_SCHEME)
.AddScheme<AuthenticationSchemeOptions, SecretKeyAuthenticationHandler>(SecretKeyAuthenticationHandler.AUTH_SCHEME, options => { });