Skip to content

Commit aaececf

Browse files
committed
Fix DRF throttle treating all requests as single anonymous user behind proxies
1 parent a2543df commit aaececf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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': config('DRF_NUM_PROXIES', default=3, cast=int),
346347
}
347348

348349
### pydotorg.middleware.GlobalSurrogateKey

0 commit comments

Comments
 (0)