Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
fatihbaltaci committed Jan 27, 2025
1 parent fc62765 commit e0d9c88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gurubase-backend/backend/backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@

SLACK_CLIENT_ID = config('SLACK_CLIENT_ID', default='')
SLACK_CLIENT_SECRET = config('SLACK_CLIENT_SECRET', default='')
PROD_BACKEND_URL = config('PROD_BACKEND_URL', default='https://kubernetesguru-backend-api.getanteon.com')
PROD_BACKEND_URL = config('PROD_BACKEND_URL', default='https://api.gurubase.io')


API_CONCURRENCY_THROTTLE_RATE = config('API_CONCURRENCY_THROTTLE_RATE', default='10/m')
2 changes: 1 addition & 1 deletion src/gurubase-backend/backend/core/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def wrapper(request, *args, **kwargs):
if widget_id_obj.domain_url:
origin = request.headers.get('Origin')
if not origin or not origin.rstrip('/').endswith(widget_id_obj.domain_url):
return Response({'msg': 'Invalid domain'}, status=status.HTTP_401_UNAUTHORIZED)
return Response({'msg': 'Invalid domain. Please check your domain URL in Gurubase platform'}, status=status.HTTP_401_UNAUTHORIZED)

request.guru_type = widget_id_obj.guru_type
return view_func(request, *args, **kwargs)
Expand Down

0 comments on commit e0d9c88

Please sign in to comment.