|
| 1 | +diff --git a/Resources/nginx/nginx.conf b/Resources/nginx/nginx.conf |
| 2 | +index a8841fe..8346c0a 100644 |
| 3 | +--- a/Resources/nginx/nginx.conf |
| 4 | ++++ b/Resources/nginx/nginx.conf |
| 5 | +@@ -38,7 +38,7 @@ http { |
| 6 | + server app:8000 fail_timeout=0; |
| 7 | + } |
| 8 | + |
| 9 | +- limit_req_zone $binary_remote_addr zone=api:10m rate=2r/s; |
| 10 | ++ # limit_req_zone $binary_remote_addr zone=api:10m rate=2r/s; |
| 11 | + |
| 12 | + server { |
| 13 | + listen 80 deferred; |
| 14 | +@@ -72,7 +72,7 @@ http { |
| 15 | + add_header Cache-Control "public"; |
| 16 | + add_header Pragma public; |
| 17 | + |
| 18 | +- limit_req zone=api burst=10; |
| 19 | ++ # limit_req zone=api burst=10; |
| 20 | + |
| 21 | + proxy_set_header X-Real-IP $remote_addr; |
| 22 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
| 23 | +diff --git a/config/settings.py b/config/settings.py |
| 24 | +index 1b2731b..44bab3e 100755 |
| 25 | +--- a/config/settings.py |
| 26 | ++++ b/config/settings.py |
| 27 | +@@ -161,12 +161,12 @@ REST_FRAMEWORK = { |
| 28 | + 'PAGE_SIZE': 20, |
| 29 | + |
| 30 | + 'PAGINATE_BY': 20, |
| 31 | +- 'DEFAULT_THROTTLE_CLASSES': ( |
| 32 | +- 'rest_framework.throttling.AnonRateThrottle', |
| 33 | +- ), |
| 34 | +- 'DEFAULT_THROTTLE_RATES': { |
| 35 | +- 'anon': '1000/hour' |
| 36 | +- } |
| 37 | ++# 'DEFAULT_THROTTLE_CLASSES': ( |
| 38 | ++# 'rest_framework.throttling.AnonRateThrottle', |
| 39 | ++# ), |
| 40 | ++# 'DEFAULT_THROTTLE_RATES': { |
| 41 | ++# 'anon': '1000/hour' |
| 42 | ++# } |
| 43 | + } |
| 44 | + |
| 45 | + MARKDOWN_DEUX_STYLES = { |
0 commit comments