|
|
@ -91,18 +91,15 @@ namespace Ombi
|
|
|
|
services.AddSwagger();
|
|
|
|
services.AddSwagger();
|
|
|
|
services.AddAppSettingsValues(Configuration);
|
|
|
|
services.AddAppSettingsValues(Configuration);
|
|
|
|
|
|
|
|
|
|
|
|
var i = StoragePathSingleton.Instance;
|
|
|
|
|
|
|
|
if (string.IsNullOrEmpty(i.StoragePath))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
i.StoragePath = string.Empty;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
services.AddHangfire(x =>
|
|
|
|
services.AddHangfire(x =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
x.UseMemoryStorage();
|
|
|
|
x.UseMemoryStorage();
|
|
|
|
x.UseActivator(new IoCJobActivator(services.BuildServiceProvider()));
|
|
|
|
x.UseActivator(new IoCJobActivator(services.BuildServiceProvider()));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SQLitePCL.raw.sqlite3_config(2);
|
|
|
|
|
|
|
|
|
|
|
|
services.AddCors(o => o.AddPolicy("MyPolicy", builder =>
|
|
|
|
services.AddCors(o => o.AddPolicy("MyPolicy", builder =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
builder.AllowAnyOrigin()
|
|
|
|
builder.AllowAnyOrigin()
|
|
|
|