mirror of
https://github.com/MODSetter/SurfSense.git
synced 2025-09-01 10:09:08 +00:00
update .env.example
This commit is contained in:
parent
715ce6d290
commit
464d4e3891
3 changed files with 10 additions and 0 deletions
|
@ -9,6 +9,7 @@ AUTH_TYPE=GOOGLE or LOCAL
|
|||
GOOGLE_OAUTH_CLIENT_ID=924507538m
|
||||
GOOGLE_OAUTH_CLIENT_SECRET=GOCSV
|
||||
GOOGLE_CALENDAR_REDIRECT_URI=http://localhost:8000/api/v1/auth/google/calendar/connector/callback
|
||||
GOOGLE_GMAIL_REDIRECT_URI=http://localhost:8000/api/v1/auth/google/gmail/connector/callback
|
||||
|
||||
# Embedding Model
|
||||
EMBEDDING_MODEL=mixedbread-ai/mxbai-embed-large-v1
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
import os
|
||||
|
||||
os.environ["OAUTHLIB_RELAX_TOKEN_SCOPE"] = (
|
||||
"1" # It is to disbale the error "Invalid token scope" when using Google OAuth with increemental scopes
|
||||
)
|
||||
|
||||
from contextlib import asynccontextmanager
|
||||
|
||||
from fastapi import Depends, FastAPI
|
||||
|
|
|
@ -51,6 +51,9 @@ class Config:
|
|||
# Google Calendar redirect URI
|
||||
GOOGLE_CALENDAR_REDIRECT_URI = os.getenv("GOOGLE_CALENDAR_REDIRECT_URI")
|
||||
|
||||
# Google Gmail redirect URI
|
||||
GOOGLE_GMAIL_REDIRECT_URI = os.getenv("GOOGLE_GMAIL_REDIRECT_URI")
|
||||
|
||||
# LLM instances are now managed per-user through the LLMConfig system
|
||||
# Legacy environment variables removed in favor of user-specific configurations
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue