Changes
This commit is contained in:
@@ -6,7 +6,17 @@ namespace Musify.Application.Configuration
|
||||
{
|
||||
public const string SectionName = "Storage";
|
||||
|
||||
public string BucketName { get; set; } = "musify-S3";
|
||||
public string ServiceUrl { get; set; } = string.Empty;
|
||||
|
||||
public string AccessKey { get; set; } = string.Empty;
|
||||
|
||||
public string SecretAccessKey { get; set; } = string.Empty;
|
||||
|
||||
public string BucketName { get; set; } = string.Empty;
|
||||
|
||||
public bool ForcePathStyle { get; set; }
|
||||
|
||||
public bool UseHttp { get; set; }
|
||||
|
||||
public StorageRoutes Routes { get; set; } = new StorageRoutes();
|
||||
|
||||
@@ -24,6 +34,10 @@ namespace Musify.Application.Configuration
|
||||
{
|
||||
EnsureValue(configuration.BucketName, nameof(BucketName));
|
||||
EnsureValue(configuration.Routes.Uploads, $"{SectionName}:Route:Upload");
|
||||
|
||||
EnsureValue(configuration.ServiceUrl, nameof(ServiceUrl));
|
||||
EnsureValue(configuration.AccessKey, nameof(AccessKey));
|
||||
EnsureValue(configuration.SecretAccessKey, nameof(SecretAccessKey));
|
||||
}
|
||||
|
||||
static void EnsureValue(string value, string name)
|
||||
|
||||
Reference in New Issue
Block a user