diff --git a/api/src/Kurs.Platform.HttpApi.Host/PlatformHttpApiHostModule.cs b/api/src/Kurs.Platform.HttpApi.Host/PlatformHttpApiHostModule.cs index 9cad72ab..7218524e 100644 --- a/api/src/Kurs.Platform.HttpApi.Host/PlatformHttpApiHostModule.cs +++ b/api/src/Kurs.Platform.HttpApi.Host/PlatformHttpApiHostModule.cs @@ -107,7 +107,7 @@ public class PlatformHttpApiHostModule : AbpModule //TenantLocalization Middleware kaydı context.Services.AddTransient(); context.Services.AddTransient(); - + ConfigureAuthentication(context); ConfigureBundles(); ConfigureUrls(configuration); @@ -333,31 +333,13 @@ public class PlatformHttpApiHostModule : AbpModule private void ConfigureBlobStoring(IConfiguration configuration) { + var root = configuration["App:CdnPath"]; + Configure(options => { - options.Containers.Configure(container => - { - container.UseFileSystem(fileSystem => - { - fileSystem.BasePath = configuration["App:CdnPath"]; - }); - }); - - options.Containers.Configure(container => - { - container.UseFileSystem(fileSystem => - { - fileSystem.BasePath = configuration["App:ImportPath"]; - }); - }); - - options.Containers.Configure(container => - { - container.UseFileSystem(fileSystem => - { - fileSystem.BasePath = configuration["App:ActivityPath"]; - }); - }); + options.Containers.Configure(c => c.UseFileSystem(fs => fs.BasePath = root)); + options.Containers.Configure(c => c.UseFileSystem(fs => fs.BasePath = root)); + options.Containers.Configure(c => c.UseFileSystem(fs => fs.BasePath = root)); }); } diff --git a/api/src/Kurs.Platform.HttpApi.Host/appsettings.Dev.json b/api/src/Kurs.Platform.HttpApi.Host/appsettings.Dev.json index cd0d7d15..f8f25afc 100644 --- a/api/src/Kurs.Platform.HttpApi.Host/appsettings.Dev.json +++ b/api/src/Kurs.Platform.HttpApi.Host/appsettings.Dev.json @@ -6,8 +6,6 @@ "RedirectAllowedUrls": "https://dev.sozsoft.com,https://dev.sozsoft.com/authentication/callback", "AttachmentsPath": "/etc/api/mail-queue/attachments", "CdnPath": "/etc/api/cdn", - "ImportPath": "/etc/api/import", - "ActivityPath": "/etc/api/activity", "BaseDomain": "sozsoft.com" }, "ConnectionStrings": { diff --git a/api/src/Kurs.Platform.HttpApi.Host/appsettings.Production.json b/api/src/Kurs.Platform.HttpApi.Host/appsettings.Production.json index 6a72c01f..08c2d075 100644 --- a/api/src/Kurs.Platform.HttpApi.Host/appsettings.Production.json +++ b/api/src/Kurs.Platform.HttpApi.Host/appsettings.Production.json @@ -6,8 +6,6 @@ "RedirectAllowedUrls": "https://sozsoft.com,https://sozsoft.com/authentication/callback", "AttachmentsPath": "/etc/api/mail-queue/attachments", "CdnPath": "/etc/api/cdn", - "ImportPath": "/etc/api/import", - "ActivityPath": "/etc/api/activity", "BaseDomain": "sozsoft.com" }, "ConnectionStrings": { diff --git a/api/src/Kurs.Platform.HttpApi.Host/appsettings.json b/api/src/Kurs.Platform.HttpApi.Host/appsettings.json index c48e2b6d..dbafadfb 100644 --- a/api/src/Kurs.Platform.HttpApi.Host/appsettings.json +++ b/api/src/Kurs.Platform.HttpApi.Host/appsettings.json @@ -6,8 +6,6 @@ "RedirectAllowedUrls": "http://localhost:4200,http://localhost:4200/authentication/callback", "AttachmentsPath": "C:\\Private\\Projects\\sozsoft\\configs\\mail-queue\\attachments", "CdnPath": "C:\\Private\\Projects\\sozsoft\\configs\\docker\\data\\cdn", - "ImportPath": "C:\\Private\\Projects\\sozsoft\\configs\\docker\\data\\import", - "ActivityPath": "C:\\Private\\Projects\\sozsoft\\configs\\docker\\data\\activity", "Version": "1.0.1" }, "ConnectionStrings": {