Make the file upload whitelist configurable and update defaults

This commit is contained in:
tyuXX 2026-10-31 17:35:45 +03:00
parent b8b98994d8
commit e7bc618b9a
6 changed files with 114 additions and 17 deletions

View file

@ -31,5 +31,34 @@
"Username": "openrelayproject",
"Credential": "openrelayproject"
}
],
"RateLimitRequestsPerMinute": 60,
"MaxConnectionsPerIp": 10,
"MaxGlobalConnections": 100,
"MaxConcurrentSessionsPerUser": 5,
"InviteTokenExpirationHours": 168,
"RequireAuthForServerInfo": false,
"EnableCsrfProtection": true,
"MaxWebSocketMessageSizeBytes": 1048576,
"FileContentTypeFilterMode": "Whitelist",
"FileContentTypeFilters": [
"image/jpeg",
"image/png",
"image/gif",
"image/webp",
"image/svg+xml",
"application/pdf",
"text/plain",
"text/csv",
"application/octet-stream",
"application/zip",
"application/x-rar-compressed",
"application/x-7z-compressed",
"audio/mpeg",
"audio/wav",
"audio/ogg",
"video/mp4",
"video/webm",
"video/quicktime"
]
}