amend nginx rate limiting urls

This commit is contained in:
Hugh Rundle 2022-10-14 21:53:51 +11:00
parent da613c9b26
commit e1513bf98d
3 changed files with 4 additions and 4 deletions

View file

@ -500,12 +500,12 @@ urlpatterns = [
name="disable-2fa",
),
re_path(
r"^login-2FA-check/?$",
r"^2fa-check/?$",
views.LoginWith2FA.as_view(),
name="login-with-2fa",
),
re_path(
r"^login-2FA-prompt/?$",
r"^2fa-prompt/?$",
views.Prompt2FA.as_view(),
name="prompt-2fa",
),

View file

@ -7,7 +7,7 @@ upstream web {
server {
listen 80;
location ~ ^/(login|password-reset|resend-link) {
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) {
# location ~ ^/(login[^-]|password-reset|resend-link|2fa-check) {
# limit_req zone=loginlimit;
#
# proxy_pass http://web;