mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-29 19:06:24 +02:00
feat: add BACKEND_URL configuration for OAuth redirect
- Introduced BACKEND_URL in the configuration to allow overriding the HTTP to HTTPS in the OAuth redirect URI. - Updated the Google OAuth router to conditionally use the BACKEND_URL for the redirect URI when specified.
This commit is contained in:
parent
a2fb9faad6
commit
a0f9c3aad8
2 changed files with 10 additions and 0 deletions
|
|
@ -97,6 +97,8 @@ class Config:
|
|||
DATABASE_URL = os.getenv("DATABASE_URL")
|
||||
|
||||
NEXT_FRONTEND_URL = os.getenv("NEXT_FRONTEND_URL")
|
||||
# Backend URL to override the http to https in the OAuth redirect URI
|
||||
BACKEND_URL = os.getenv("BACKEND_URL")
|
||||
|
||||
# Auth
|
||||
AUTH_TYPE = os.getenv("AUTH_TYPE")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue