updated to accept only .tar.zstd uploads
This commit is contained in:
@@ -10,6 +10,15 @@ public class Config
|
||||
public string BaseUrl { get; set; } = "http://127.0.0.1:5226/";
|
||||
public int UploadLifetimeDays { get; set; } = 30;
|
||||
public string DbPath { get; set; } = "database.sqlite";
|
||||
public SaveUploadConfig SaveUpload { get; set; } = new();
|
||||
|
||||
public class SaveUploadConfig
|
||||
{
|
||||
/// max size of game data entry after decompression
|
||||
public long MaxSizePlainTextBytes { get; set; } = 200 * 1024 * 1024;
|
||||
/// max size of uploaded .tar.zst
|
||||
public long MaxSizeCompressedBytes { get; set; } = 60 * 1024 * 1024;
|
||||
}
|
||||
|
||||
public static JsonSerializerOptions JsonOptions = new()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user