This commit is contained in:
2026-03-18 18:08:53 +01:00
parent afcdaea4fd
commit b1ac38d377
4 changed files with 77 additions and 3 deletions
@@ -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)