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ı
|
//TenantLocalization Middleware kaydı
|
||||||
context.Services.AddTransient<TenantLocalizationMiddleware>();
|
context.Services.AddTransient<TenantLocalizationMiddleware>();
|
||||||
context.Services.AddTransient<TenantLocalizationInitializer>();
|
context.Services.AddTransient<TenantLocalizationInitializer>();
|
||||||
|
|
||||||
ConfigureAuthentication(context);
|
ConfigureAuthentication(context);
|
||||||
ConfigureBundles();
|
ConfigureBundles();
|
||||||
ConfigureUrls(configuration);
|
ConfigureUrls(configuration);
|
||||||
|
|
@ -333,31 +333,13 @@ public class PlatformHttpApiHostModule : AbpModule
|
||||||
|
|
||||||
private void ConfigureBlobStoring(IConfiguration configuration)
|
private void ConfigureBlobStoring(IConfiguration configuration)
|
||||||
{
|
{
|
||||||
|
var root = configuration["App:CdnPath"];
|
||||||
|
|
||||||
Configure<AbpBlobStoringOptions>(options =>
|
Configure<AbpBlobStoringOptions>(options =>
|
||||||
{
|
{
|
||||||
options.Containers.Configure<AvatarBlobContainer>(container =>
|
options.Containers.Configure<AvatarBlobContainer>(c => c.UseFileSystem(fs => fs.BasePath = root));
|
||||||
{
|
options.Containers.Configure<ImportBlobContainer>(c => c.UseFileSystem(fs => fs.BasePath = root));
|
||||||
container.UseFileSystem(fileSystem =>
|
options.Containers.Configure<ActivityBlobContainer>(c => c.UseFileSystem(fs => fs.BasePath = root));
|
||||||
{
|
|
||||||
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"];
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,6 @@
|
||||||
"RedirectAllowedUrls": "https://dev.sozsoft.com,https://dev.sozsoft.com/authentication/callback",
|
"RedirectAllowedUrls": "https://dev.sozsoft.com,https://dev.sozsoft.com/authentication/callback",
|
||||||
"AttachmentsPath": "/etc/api/mail-queue/attachments",
|
"AttachmentsPath": "/etc/api/mail-queue/attachments",
|
||||||
"CdnPath": "/etc/api/cdn",
|
"CdnPath": "/etc/api/cdn",
|
||||||
"ImportPath": "/etc/api/import",
|
|
||||||
"ActivityPath": "/etc/api/activity",
|
|
||||||
"BaseDomain": "sozsoft.com"
|
"BaseDomain": "sozsoft.com"
|
||||||
},
|
},
|
||||||
"ConnectionStrings": {
|
"ConnectionStrings": {
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,6 @@
|
||||||
"RedirectAllowedUrls": "https://sozsoft.com,https://sozsoft.com/authentication/callback",
|
"RedirectAllowedUrls": "https://sozsoft.com,https://sozsoft.com/authentication/callback",
|
||||||
"AttachmentsPath": "/etc/api/mail-queue/attachments",
|
"AttachmentsPath": "/etc/api/mail-queue/attachments",
|
||||||
"CdnPath": "/etc/api/cdn",
|
"CdnPath": "/etc/api/cdn",
|
||||||
"ImportPath": "/etc/api/import",
|
|
||||||
"ActivityPath": "/etc/api/activity",
|
|
||||||
"BaseDomain": "sozsoft.com"
|
"BaseDomain": "sozsoft.com"
|
||||||
},
|
},
|
||||||
"ConnectionStrings": {
|
"ConnectionStrings": {
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,6 @@
|
||||||
"RedirectAllowedUrls": "http://localhost:4200,http://localhost:4200/authentication/callback",
|
"RedirectAllowedUrls": "http://localhost:4200,http://localhost:4200/authentication/callback",
|
||||||
"AttachmentsPath": "C:\\Private\\Projects\\sozsoft\\configs\\mail-queue\\attachments",
|
"AttachmentsPath": "C:\\Private\\Projects\\sozsoft\\configs\\mail-queue\\attachments",
|
||||||
"CdnPath": "C:\\Private\\Projects\\sozsoft\\configs\\docker\\data\\cdn",
|
"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"
|
"Version": "1.0.1"
|
||||||
},
|
},
|
||||||
"ConnectionStrings": {
|
"ConnectionStrings": {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue