Commit 3484cb32 by Fred Smith

dont log social data leak exploit attempts

parent c2e4bb5e
...@@ -11,6 +11,11 @@ upstream lms-backend { ...@@ -11,6 +11,11 @@ upstream lms-backend {
} }
map $request_uri $loggable {
~/login\?next=favicon\.ico 0;
default 1;
}
{%- 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 }};
...@@ -123,7 +128,7 @@ error_page {{ k }} {{ v }}; ...@@ -123,7 +128,7 @@ error_page {{ k }} {{ v }};
} }
{% endif %} {% 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; error_log {{ nginx_log_dir }}/error.log error;
# CS184 requires uploads of up to 4MB for submitting screenshots. # 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