Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
52b32476
Commit
52b32476
authored
Aug 29, 2014
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add rate limiting to the lms course urls.
parent
37a82f8d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/lms.j2
+10
-0
No files found.
playbooks/roles/nginx/templates/edx/app/nginx/sites-available/lms.j2
View file @
52b32476
...
...
@@ -10,6 +10,9 @@ upstream lms-backend {
{% endfor %}
}
# Make Zone
limit_req_zone $cookie_{{ EDXAPP_SESSION_COOKIE_NAME }} zone=cookies:10m rate=10r/s;
server {
# LMS configuration file for nginx, templated by ansible
...
...
@@ -68,6 +71,13 @@ server {
try_files $uri @proxy_to_lms_app;
}
location /course {
# Set Limit
limit_req zone=cookies burst=50;
{% include "basic-auth.j2" %}
try_files $uri @proxy_to_lms_app;
}
{% include "robots.j2" %}
{% include "static-files.j2" %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment