Commit be321461 by syed-awais-ali

removed extra endif statement which was raising error

parent acd0912e
...@@ -14,6 +14,7 @@ upstream lms-backend { ...@@ -14,6 +14,7 @@ upstream lms-backend {
{%- if EDXAPP_ENABLE_RATE_LIMITING -%} {%- if EDXAPP_ENABLE_RATE_LIMITING -%}
# Make Zone # Make Zone
limit_req_zone $cookie_{{ EDXAPP_SESSION_COOKIE_NAME }} zone=cookies:10m rate={{ EDXAPP_COURSES_REQUEST_RATE }}; limit_req_zone $cookie_{{ EDXAPP_SESSION_COOKIE_NAME }} zone=cookies:10m rate={{ EDXAPP_COURSES_REQUEST_RATE }};
#Iterate through the list of User agent and add limit_req_zone for each user agent
{% for agent in EDXAPP_RATE_LIMITED_USER_AGENTS %} {% for agent in EDXAPP_RATE_LIMITED_USER_AGENTS %}
map $http_user_agent {{ "$limit_bot_" ~ agent.alias }} { map $http_user_agent {{ "$limit_bot_" ~ agent.alias }} {
{{ agent.agent_name }} $binary_remote_addr; {{ agent.agent_name }} $binary_remote_addr;
...@@ -22,7 +23,6 @@ limit_req_zone {{ "$limit_bot_" ~ agent.alias }} zone=agents:10m rate={{ agent.r ...@@ -22,7 +23,6 @@ limit_req_zone {{ "$limit_bot_" ~ agent.alias }} zone=agents:10m rate={{ agent.r
{% endfor %} {% endfor %}
{%- endif %} {%- endif %}
{%- endif %}
{% if NGINX_EDXAPP_EMBARGO_CIDRS %} {% if NGINX_EDXAPP_EMBARGO_CIDRS %}
......
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