From 40ead411765d8507ef769f6d5bb0bcb273eb54c4 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 1 Nov 2022 18:17:37 -0700 Subject: [PATCH] Fixes rate limiter --- nginx/development | 2 +- nginx/production | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx/development b/nginx/development index 4a7896249..be33cea17 100644 --- a/nginx/development +++ b/nginx/development @@ -7,7 +7,7 @@ upstream web { server { listen 80; - location ~ ^/(login[^-]|password-reset|resend-link|2fa-check) { + location ~ ^/(login[^-/]|password-reset|resend-link|2fa-check) { limit_req zone=loginlimit; proxy_pass http://web; diff --git a/nginx/production b/nginx/production index b74fe409c..949bc9340 100644 --- a/nginx/production +++ b/nginx/production @@ -41,7 +41,7 @@ server { # root /var/www/certbot; # } # -# location ~ ^/(login[^-]|password-reset|resend-link|2fa-check) { +# location ~ ^/(login[^-/]|password-reset|resend-link|2fa-check) { # limit_req zone=loginlimit; # # proxy_pass http://web;