Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
1bf74c7d
Commit
1bf74c7d
authored
7 years ago
by
John Eskew
Browse files
Options
Downloads
Patches
Plain Diff
Add disabled request limits implemented in Django 1.11
parent
461fadb2
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cms/envs/common.py
+5
-0
5 additions, 0 deletions
cms/envs/common.py
lms/envs/common.py
+5
-0
5 additions, 0 deletions
lms/envs/common.py
with
10 additions
and
0 deletions
cms/envs/common.py
+
5
−
0
View file @
1bf74c7d
...
...
@@ -1241,6 +1241,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
...
...
This diff is collapsed.
Click to expand it.
lms/envs/common.py
+
5
−
0
View file @
1bf74c7d
...
...
@@ -643,6 +643,11 @@ AUTHENTICATION_BACKENDS = ['ratelimitbackend.backends.RateLimitModelBackend']
STUDENT_FILEUPLOAD_MAX_SIZE
=
4
*
1000
*
1000
# 4 MB
MAX_FILEUPLOADS_PER_INPUT
=
20
# 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
# Configuration option for when we want to grab server error pages
STATIC_GRAB
=
False
DEV_CONTENT
=
True
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment