Unverified Commit a863cd17 by Fred Smith Committed by GitHub

Merge pull request #4528 from edx/derf/dont_log_social_data_leak_exploit_attempts

dont log social data leak exploit attempts
parents c2e4bb5e 3484cb32
......@@ -11,6 +11,11 @@ upstream lms-backend {
}
map $request_uri $loggable {
~/login\?next=favicon\.ico 0;
default 1;
}
{%- if EDXAPP_ENABLE_RATE_LIMITING -%}
# Make Zone
limit_req_zone $cookie_{{ EDXAPP_SESSION_COOKIE_NAME }} zone=cookies:10m rate={{ EDXAPP_COURSES_REQUEST_RATE }};
......@@ -123,7 +128,7 @@ error_page {{ k }} {{ v }};
}
{% endif %}
access_log {{ nginx_log_dir }}/access.log {{ NGINX_LOG_FORMAT_NAME }};
access_log {{ nginx_log_dir }}/access.log {{ NGINX_LOG_FORMAT_NAME }} if=$loggable;
error_log {{ nginx_log_dir }}/error.log error;
# CS184 requires uploads of up to 4MB for submitting screenshots.
......
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