feat: make some limits configurable
This commit is contained in:
parent
74800b46ef
commit
373d97e70a
11 changed files with 312 additions and 218 deletions
|
@ -31,6 +31,7 @@ public class Config
|
|||
public LoggingConfig Logging { get; init; } = new();
|
||||
public DatabaseConfig Database { get; init; } = new();
|
||||
public StorageConfig Storage { get; init; } = new();
|
||||
public LimitsConfig Limits { get; init; } = new();
|
||||
public EmailAuthConfig EmailAuth { get; init; } = new();
|
||||
public DiscordAuthConfig DiscordAuth { get; init; } = new();
|
||||
public GoogleAuthConfig GoogleAuth { get; init; } = new();
|
||||
|
@ -93,4 +94,17 @@ public class Config
|
|||
public string? ClientId { get; init; }
|
||||
public string? ClientSecret { get; init; }
|
||||
}
|
||||
|
||||
public class LimitsConfig
|
||||
{
|
||||
public int MaxMemberCount { get; init; } = 1000;
|
||||
|
||||
public int MaxUsernameLength { get; init; } = 40;
|
||||
public int MaxMemberNameLength { get; init; } = 100;
|
||||
public int MaxDisplayNameLength { get; init; } = 100;
|
||||
public int MaxLinks { get; init; } = 25;
|
||||
public int MaxLinkLength { get; init; } = 256;
|
||||
public int MaxBioLength { get; init; } = 1024;
|
||||
public int MaxAvatarLength { get; init; } = 1_500_000;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue