mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-28 05:19:18 +01:00
add streaming for uploads/aborting, whitelist changes and so on
This commit is contained in:
parent
2b53c6a824
commit
9fa6517486
3 changed files with 139 additions and 40 deletions
|
|
@ -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 => { });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue