Blob düzenlemesi
AvatarBlobContainer ImportBlobContainer ActivityBlobContainer
This commit is contained in:
parent
d9c718fb4e
commit
fcd938985d
4 changed files with 6 additions and 30 deletions
|
|
@ -107,7 +107,7 @@ public class PlatformHttpApiHostModule : AbpModule
|
|||
//TenantLocalization Middleware kaydı
|
||||
context.Services.AddTransient<TenantLocalizationMiddleware>();
|
||||
context.Services.AddTransient<TenantLocalizationInitializer>();
|
||||
|
||||
|
||||
ConfigureAuthentication(context);
|
||||
ConfigureBundles();
|
||||
ConfigureUrls(configuration);
|
||||
|
|
@ -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));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue