Unverified Commit 83730862 by Cory Lee Committed by GitHub

Coryleeio/social data logging fix (#4531)

* Revert "dont log social data leak exploit attempts"

This reverts commit 3484cb32.

* Turn off logging if next=favicon.ico
parent eb01ceb7
......@@ -11,11 +11,6 @@ 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 }};
......@@ -128,7 +123,7 @@ error_page {{ k }} {{ v }};
}
{% endif %}
access_log {{ nginx_log_dir }}/access.log {{ NGINX_LOG_FORMAT_NAME }} if=$loggable;
access_log {{ nginx_log_dir }}/access.log {{ NGINX_LOG_FORMAT_NAME }};
error_log {{ nginx_log_dir }}/error.log error;
# CS184 requires uploads of up to 4MB for submitting screenshots.
......@@ -195,6 +190,7 @@ error_page {{ k }} {{ v }};
{% endif %}
if ( $arg_next ~* "favicon.ico" ) {
access_log off;
return 403;
}
......
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