mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 16:57:22 +01:00
add horizontal file sharding based on filename matches
This commit is contained in:
parent
2a5e505130
commit
b6404a9c1d
11 changed files with 72 additions and 21 deletions
|
|
@ -20,6 +20,8 @@ public class ServerConfiguration : MareConfigurationAuthBase
|
|||
public bool PurgeUnusedAccounts { get; set; } = false;
|
||||
[RemoteConfiguration]
|
||||
public int PurgeUnusedAccountsPeriodInDays { get; set; } = 14;
|
||||
[RemoteConfiguration]
|
||||
public List<CdnShardConfiguration> CdnShardConfiguration { get; set; } = new();
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
|
|
@ -27,6 +29,7 @@ public class ServerConfiguration : MareConfigurationAuthBase
|
|||
sb.AppendLine(base.ToString());
|
||||
sb.AppendLine($"{nameof(MainServerGrpcAddress)} => {MainServerGrpcAddress}");
|
||||
sb.AppendLine($"{nameof(CdnFullUrl)} => {CdnFullUrl}");
|
||||
sb.AppendLine($"{nameof(CdnShardConfiguration)} => {string.Join(", ", CdnShardConfiguration.Select(c => c.ToString()))}");
|
||||
sb.AppendLine($"{nameof(StaticFileServiceAddress)} => {StaticFileServiceAddress}");
|
||||
sb.AppendLine($"{nameof(RedisConnectionString)} => {RedisConnectionString}");
|
||||
sb.AppendLine($"{nameof(MaxExistingGroupsByUser)} => {MaxExistingGroupsByUser}");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue