Fixes rate limiter

This commit is contained in:
Mouse Reeve 2022-11-01 18:17:37 -07:00
parent 1c949a5d71
commit 40ead41176
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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;