mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-25 11:01:12 +00:00
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",
|
||||
),
|
||||
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",
|
||||
),
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue