Blob düzenlemesi

AvatarBlobContainer ImportBlobContainer ActivityBlobContainer
This commit is contained in:
Sedat Öztürk 2025-10-26 00:31:55 +03:00
parent d9c718fb4e
commit fcd938985d
4 changed files with 6 additions and 30 deletions

View file

@ -333,31 +333,13 @@ public class PlatformHttpApiHostModule : AbpModule
private void ConfigureBlobStoring(IConfiguration configuration)
{
var root = configuration["App:CdnPath"];
Configure<AbpBlobStoringOptions>(options =>
{
options.Containers.Configure<AvatarBlobContainer>(container =>
{
container.UseFileSystem(fileSystem =>
{
fileSystem.BasePath = configuration["App:CdnPath"];
});
});
options.Containers.Configure<ImportBlobContainer>(container =>
{
container.UseFileSystem(fileSystem =>
{
fileSystem.BasePath = configuration["App:ImportPath"];
});
});
options.Containers.Configure<ActivityBlobContainer>(container =>
{
container.UseFileSystem(fileSystem =>
{
fileSystem.BasePath = configuration["App:ActivityPath"];
});
});
options.Containers.Configure<AvatarBlobContainer>(c => c.UseFileSystem(fs => fs.BasePath = root));
options.Containers.Configure<ImportBlobContainer>(c => c.UseFileSystem(fs => fs.BasePath = root));
options.Containers.Configure<ActivityBlobContainer>(c => c.UseFileSystem(fs => fs.BasePath = root));
});
}

View file

@ -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": {

View file

@ -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": {

View file

@ -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": {