Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase throtling limits + fix oauth redirect_uri #701

Merged
merged 1 commit into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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',
}
Loading