Make the file upload whitelist configurable and update defaults
This commit is contained in:
parent
b8b98994d8
commit
e7bc618b9a
6 changed files with 114 additions and 17 deletions
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue