Commit 4b82ddff by Fred Smith

fix error on zero rate limited agents

parent 734ce7f1
......@@ -216,7 +216,10 @@ error_page {{ k }} {{ v }};
{%- if EDXAPP_ENABLE_RATE_LIMITING -%}
# Set Limit
limit_req zone=cookies burst={{ EDXAPP_COURSES_REQUEST_BURST_RATE }};
{%- if EDXAPP_RATE_LIMITED_USER_AGENTS|length > 0 %}
limit_req zone=agents burst={{ EDXAPP_COURSES_USER_AGENT_BURST_RATE }};
{%- endif %}
error_page 503 = /server/rate-limit.html;
{%- endif -%}
......
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