Skip to content

Commit

Permalink
Merge pull request #248 from SubstraFoundation/decrease-throttle-value
Browse files Browse the repository at this point in the history
Decrease throttle value
  • Loading branch information
Kelvin-M authored May 18, 2020
2 parents d3bf013 + 6a30168 commit 11152a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/backend/settings/deps/restframework.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
'rest_framework.throttling.AnonRateThrottle',
],
'DEFAULT_THROTTLE_RATES': {
'anon': '120/minute',
'login': '120/minute',
'anon': f'{os.environ.get("DEFAULT_THROTTLE_RATES", 40)}/minute',
'login': f'{os.environ.get("DEFAULT_THROTTLE_RATES", 40)}/minute',
},
'DEFAULT_PARSER_CLASSES': [
'rest_framework.parsers.JSONParser',
Expand Down
4 changes: 4 additions & 0 deletions skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ deploy:
# Should be a json list
- name: CORS_ORIGIN_WHITELIST
value: '["http://substra-frontend.node-1.com/"]'
- name: DEFAULT_THROTTLE_RATES
value: '30'

- name: backend-org-2
chartPath: charts/substra-backend
Expand Down Expand Up @@ -194,6 +196,8 @@ deploy:
# Should be a json list
- name: CORS_ORIGIN_WHITELIST
value: '["http://substra-frontend.node-2.com/"]'
- name: DEFAULT_THROTTLE_RATES
value: '30'

profiles:
- name: prod
Expand Down

0 comments on commit 11152a9

Please sign in to comment.