Some fixes and security updates

This commit is contained in:
tyuXX 2026-10-24 14:53:10 +03:00
parent 43acf366af
commit 68e6fa2353
22 changed files with 1114 additions and 58 deletions

View file

@ -16,4 +16,14 @@ public class ServerOptions
public bool AllowMemberChannelCreation { get; set; } = true;
public bool AllowDmE2ee { get; set; } = true;
public int MaxGroupChatUsers { get; set; } = 10;
// Security Settings
public int RateLimitRequestsPerMinute { get; set; } = 60;
public int MaxConnectionsPerIp { get; set; } = 10;
public int MaxGlobalConnections { get; set; } = 100;
public int MaxConcurrentSessionsPerUser { get; set; } = 5;
public int InviteTokenExpirationHours { get; set; } = 168; // 7 days
public bool RequireAuthForServerInfo { get; set; } = false;
public bool EnableCsrfProtection { get; set; } = true;
public int MaxWebSocketMessageSizeBytes { get; set; } = 1048576; // 1MB
}