Some fixes and security updates
This commit is contained in:
parent
43acf366af
commit
68e6fa2353
22 changed files with 1114 additions and 58 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue