feat: comment out throttling

This commit is contained in:
Alessandro Pezzè 2019-12-17 14:52:11 +01:00
parent 23f3d25ea2
commit 3ee705ae25
2 changed files with 8 additions and 8 deletions

View file

@ -38,7 +38,7 @@ http {
server app:8000 fail_timeout=0;
}
limit_req_zone $binary_remote_addr zone=api:10m rate=2r/s;
# limit_req_zone $binary_remote_addr zone=api:10m rate=2r/s;
server {
listen 80 deferred;
@ -72,7 +72,7 @@ http {
add_header Cache-Control "public";
add_header Pragma public;
limit_req zone=api burst=10;
# limit_req zone=api burst=10;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

View file

@ -127,10 +127,10 @@ REST_FRAMEWORK = {
'PAGE_SIZE': 20,
'PAGINATE_BY': 20,
'DEFAULT_THROTTLE_CLASSES': (
'rest_framework.throttling.AnonRateThrottle',
),
'DEFAULT_THROTTLE_RATES': {
'anon': '1000/hour'
}
# 'DEFAULT_THROTTLE_CLASSES': (
# 'rest_framework.throttling.AnonRateThrottle',
# ),
# 'DEFAULT_THROTTLE_RATES': {
# 'anon': '1000/hour'
# }
}