amend nginx rate limiting urls
This commit is contained in:
parent
da613c9b26
commit
e1513bf98d
3 changed files with 4 additions and 4 deletions
|
@ -500,12 +500,12 @@ urlpatterns = [
|
||||||
name="disable-2fa",
|
name="disable-2fa",
|
||||||
),
|
),
|
||||||
re_path(
|
re_path(
|
||||||
r"^login-2FA-check/?$",
|
r"^2fa-check/?$",
|
||||||
views.LoginWith2FA.as_view(),
|
views.LoginWith2FA.as_view(),
|
||||||
name="login-with-2fa",
|
name="login-with-2fa",
|
||||||
),
|
),
|
||||||
re_path(
|
re_path(
|
||||||
r"^login-2FA-prompt/?$",
|
r"^2fa-prompt/?$",
|
||||||
views.Prompt2FA.as_view(),
|
views.Prompt2FA.as_view(),
|
||||||
name="prompt-2fa",
|
name="prompt-2fa",
|
||||||
),
|
),
|
||||||
|
|
|
@ -7,7 +7,7 @@ upstream web {
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
|
||||||
location ~ ^/(login|password-reset|resend-link) {
|
location ~ ^/(login[^-]|password-reset|resend-link|2fa-check) {
|
||||||
limit_req zone=loginlimit;
|
limit_req zone=loginlimit;
|
||||||
|
|
||||||
proxy_pass http://web;
|
proxy_pass http://web;
|
||||||
|
|
|
@ -41,7 +41,7 @@ server {
|
||||||
# root /var/www/certbot;
|
# root /var/www/certbot;
|
||||||
# }
|
# }
|
||||||
#
|
#
|
||||||
# location ~ ^/(login|password-reset|resend-link) {
|
# location ~ ^/(login[^-]|password-reset|resend-link|2fa-check) {
|
||||||
# limit_req zone=loginlimit;
|
# limit_req zone=loginlimit;
|
||||||
#
|
#
|
||||||
# proxy_pass http://web;
|
# proxy_pass http://web;
|
||||||
|
|
Loading…
Add table
Reference in a new issue