From 3f2bb8c5306851d15ec76383e1ea73276666afc6 Mon Sep 17 00:00:00 2001 From: HF Date: Thu, 6 Oct 2022 13:38:18 +0200 Subject: [PATCH] update nginx example config --- deployment/nginx/includes/canvas.conf | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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;