Browse Source

feat(api): relax dns_api_write_rrsets hourly rate limit

Peter Thomassen 3 năm trước cách đây
mục cha
commit
bd70579de9
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      api/api/settings.py
  2. 1 1
      docs/rate-limits.rst

+ 1 - 1
api/api/settings.py

@@ -113,7 +113,7 @@ REST_FRAMEWORK = {
         'dyndns': ['1/min'],  # dynDNS updates, domain-scoped; anything above 1/min is a client misconfiguration
         'dyndns': ['1/min'],  # dynDNS updates, domain-scoped; anything above 1/min is a client misconfiguration
         'dns_api_read': ['10/s', '50/min'],  # DNS API requests that do not involve pdns
         'dns_api_read': ['10/s', '50/min'],  # DNS API requests that do not involve pdns
         'dns_api_write_domains': ['10/s', '300/min', '1000/h'],  # domains/ endpoint
         'dns_api_write_domains': ['10/s', '300/min', '1000/h'],  # domains/ endpoint
-        'dns_api_write_rrsets': ['2/s', '15/min', '30/h', '300/d'],  # rrsets/ endpoint, domain-scoped on the view
+        'dns_api_write_rrsets': ['2/s', '15/min', '100/h', '300/d'],  # rrsets/ endpoint, domain-scoped on the view
         # UserRateThrottle
         # UserRateThrottle
         'user': '2000/d',  # hard limit on requests by a) an authenticated user, b) an unauthenticated IP address
         'user': '2000/d',  # hard limit on requests by a) an authenticated user, b) an unauthenticated IP address
     },
     },

+ 1 - 1
docs/rate-limits.rst

@@ -47,7 +47,7 @@ the API.  When several rates are given, all are enforced at the same time.
 |                                |          | more requests, consider using bulk requests.                                              |
 |                                |          | more requests, consider using bulk requests.                                              |
 |                                | 15/min   |                                                                                           |
 |                                | 15/min   |                                                                                           |
 |                                |          |                                                                                           |
 |                                |          |                                                                                           |
-|                                | 30/h     |                                                                                           |
+|                                | 100/h    |                                                                                           |
 |                                |          |                                                                                           |
 |                                |          |                                                                                           |
 |                                | 300/day  |                                                                                           |
 |                                | 300/day  |                                                                                           |
 +--------------------------------+----------+-------------------------------------------------------------------------------------------+
 +--------------------------------+----------+-------------------------------------------------------------------------------------------+