Skip to content

Commit

Permalink
fix: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaVetnic committed Jun 24, 2024
1 parent 99ccf42 commit 765f6b7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 24 deletions.
17 changes: 5 additions & 12 deletions Modules/Files/src/Files.ConsumerApi/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class BlobStorageConfiguration

public string ContainerName { get; set; } = string.Empty;

public IonosS3Config IonosS3Config { get; set; } = new IonosS3Config();
public IonosS3Config? IonosS3Config { get; set; }
}

public class SqlDatabaseConfiguration
Expand All @@ -47,17 +47,10 @@ public class SqlDatabaseConfiguration

public class IonosS3Config
{
[Required]
public string ServiceUrl { get; set; } = string.Empty;

[Required]
public string AccessKey { get; set; } = string.Empty;

[Required]
public string SecretKey { get; set; } = string.Empty;

[Required]
public string BucketName { get; set; } = string.Empty;
public string? ServiceUrl { get; set; }
public string? AccessKey { get; set; }
public string? SecretKey { get; set; }
public string? BucketName { get; set; }
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,13 @@ public class BlobStorageConfiguration

public string ContainerName { get; set; } = string.Empty;

public IonosS3Config IonosS3Config { get; set; } = new IonosS3Config();
public IonosS3Config? IonosS3Config { get; set; }
}

public class IonosS3Config
{
[Required]
public string ServiceUrl { get; set; } = string.Empty;

[Required]
public string AccessKey { get; set; } = string.Empty;

[Required]
public string SecretKey { get; set; } = string.Empty;

[Required]
public string BucketName { get; set; } = string.Empty;
public string? ServiceUrl { get; set; }
public string? AccessKey { get; set; }
public string? SecretKey { get; set; }
public string? BucketName { get; set; }
}

0 comments on commit 765f6b7

Please sign in to comment.