Skip to content
Snippets Groups Projects

Rate limit invite endpoint

Merged Andreas Ellewsen requested to merge GREG-84-rate-limit into master
All threads resolved!
4 files
+ 28
0
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 11
0
@@ -268,6 +268,17 @@ INTERNAL_RK_PREFIX = "no.{instance}.greg".format(instance=INSTANCE_NAME)
@@ -268,6 +268,17 @@ INTERNAL_RK_PREFIX = "no.{instance}.greg".format(instance=INSTANCE_NAME)
FEIDE_SOURCE = "feide"
FEIDE_SOURCE = "feide"
 
# Rate limit settings of invite endpoint
 
REST_FRAMEWORK = {
 
"DEFAULT_THROTTLE_CLASSES": [
 
"rest_framework.throttling.AnonRateThrottle",
 
],
 
"DEFAULT_THROTTLE_RATES": {
 
+4
"anon": "100/day",
 
},
 
}
 
 
# Used by the OU import from orgreg to distinguish the OuIdentifiers from others
# Used by the OU import from orgreg to distinguish the OuIdentifiers from others
ORGREG_SOURCE = "orgreg"
ORGREG_SOURCE = "orgreg"
ORGREG_NAME = "orgreg_id"
ORGREG_NAME = "orgreg_id"
Loading