Commit 38658080 by Feanil Patel

Reduce the request limit.

parent 52b32476
...@@ -11,7 +11,7 @@ upstream lms-backend { ...@@ -11,7 +11,7 @@ upstream lms-backend {
} }
# Make Zone # Make Zone
limit_req_zone $cookie_{{ EDXAPP_SESSION_COOKIE_NAME }} zone=cookies:10m rate=10r/s; limit_req_zone $cookie_{{ EDXAPP_SESSION_COOKIE_NAME }} zone=cookies:10m rate=1r/s;
server { server {
# LMS configuration file for nginx, templated by ansible # LMS configuration file for nginx, templated by ansible
...@@ -71,9 +71,9 @@ server { ...@@ -71,9 +71,9 @@ server {
try_files $uri @proxy_to_lms_app; try_files $uri @proxy_to_lms_app;
} }
location /course { location /courses {
# Set Limit # Set Limit
limit_req zone=cookies burst=50; limit_req zone=cookies burst=3;
{% include "basic-auth.j2" %} {% include "basic-auth.j2" %}
try_files $uri @proxy_to_lms_app; try_files $uri @proxy_to_lms_app;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment