feat(backend): make field limits configurable

This commit is contained in:
sam 2025-02-28 16:37:15 +01:00
parent 7ea6c62d67
commit 218c756a70
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
7 changed files with 133 additions and 149 deletions

View file

@ -99,6 +99,11 @@ public class Config
{
public int MaxMemberCount { get; init; } = 1000;
public int MaxFields { get; init; } = 25;
public int MaxFieldNameLength { get; init; } = 100;
public int MaxFieldEntryTextLength { get; init; } = 100;
public int MaxFieldEntries { get; init; } = 100;
public int MaxUsernameLength { get; init; } = 40;
public int MaxMemberNameLength { get; init; } = 100;
public int MaxDisplayNameLength { get; init; } = 100;