Merge pull request #16574 from edx/jeskew/add_request_limits_for_django110
Add request limits to LMS/CMS Django settings.
This commit is contained in:
@@ -1243,6 +1243,11 @@ ADVANCED_SECURITY_CONFIG = {}
|
||||
SHIBBOLETH_DOMAIN_PREFIX = 'shib:'
|
||||
OPENID_DOMAIN_PREFIX = 'openid:'
|
||||
|
||||
# Set request limits for maximum size of a request body and maximum number of GET/POST parameters. (>=Django 1.10)
|
||||
# Limits are currently disabled - but can be used for finer-grained denial-of-service protection.
|
||||
DATA_UPLOAD_MAX_MEMORY_SIZE = None
|
||||
DATA_UPLOAD_MAX_NUMBER_FIELDS = None
|
||||
|
||||
### Size of chunks into which asset uploads will be divided
|
||||
UPLOAD_CHUNK_SIZE_IN_MB = 10
|
||||
|
||||
|
||||
Reference in New Issue
Block a user