diff --git a/deployment/nginx/includes/canvas.conf b/deployment/nginx/includes/canvas.conf index b82dd12..5309e43 100644 --- a/deployment/nginx/includes/canvas.conf +++ b/deployment/nginx/includes/canvas.conf @@ -12,10 +12,6 @@ include /etc/nginx/includes/certbotroot.conf; location / { - proxy_no_cache 1; - if ($http_user_agent ~* (python-requests)) { - return 503; - } limit_req zone=general burst=20 delay=10; proxy_set_header X-Real-IP $remote_addr; client_max_body_size 3M; @@ -23,9 +19,7 @@ location / { } location = / { - if ($http_user_agent ~* (python-requests)) { - return 503; - } + proxy_no_cache 1; if ( $query_string ) { return 403; } limit_req zone=captcha burst=5; proxy_set_header X-Real-IP $remote_addr;