Skip to content

Commit

Permalink
Increase throtling limits + fix oauth redirect_uri (#701)
Browse files Browse the repository at this point in the history
  • Loading branch information
willemarcel authored Jun 4, 2024
1 parent aee0c7f commit 55db5b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion config/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@
# in OSM website
OAUTH_REDIRECT_URI = env(
'OAUTH_REDIRECT_URI',
default='http://127.0.0.1:3000/oauth-landing.html'
default='http://127.0.0.1:3000/authorized'
)

OSMCHA_URL = env('OSMCHA_URL', default='https://osmcha.org')
9 changes: 1 addition & 8 deletions config/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,6 @@

# Your production stuff: Below this line define 3rd party library settings

CELERYBEAT_SCHEDULE = {
'schedule-name': {
'task': 'osmchadjango.changeset.tasks.fetch_latest',
'schedule': 60 #Run every 60 seconds
},
}

REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework.authentication.TokenAuthentication',
Expand All @@ -123,7 +116,7 @@
'DEFAULT_THROTTLE_RATES': {
'anon': env('ANON_USER_THROTTLE_RATE', default='30/min'),
'user': env('COMMON_USER_THROTTLE_RATE', default='180/min'),
'non_staff_user': env('NON_STAFF_USER_THROTTLE_RATE', default='3/min')
'non_staff_user': env('NON_STAFF_USER_THROTTLE_RATE', default='5/min')
},
'ORDERING_PARAM': 'order_by',
}

0 comments on commit 55db5b1

Please sign in to comment.