Skip to content

Commit 50518fd

Browse files
authored
Fix DRF throttle behinnd proxy (#2892)
Fix DRF throttle treating all requests as single anonymous user behind proxies
1 parent 0338231 commit 50518fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pydotorg/settings/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@
343343
'anon': '100/day',
344344
'user': '3000/day',
345345
},
346+
'NUM_PROXIES': 3,
346347
}
347348

348349
### pydotorg.middleware.GlobalSurrogateKey

0 commit comments

Comments
 (0)