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:
John Eskew
2017-11-16 13:13:46 -05:00
committed by GitHub
2 changed files with 10 additions and 14 deletions

View File

@@ -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