mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 21:27: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
|
|
@ -0,0 +1,17 @@
|
|||
using System.Text.Json.Serialization;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace MareSynchronosShared.Utils;
|
||||
|
||||
public class CdnShardConfiguration
|
||||
{
|
||||
public string FileMatch { get; set; }
|
||||
[JsonIgnore]
|
||||
public Regex FileMatchRegex => new Regex(FileMatch);
|
||||
public Uri CdnFullUrl { get; set; }
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return CdnFullUrl.ToString() + " == " + FileMatch;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue