2025-06-09 15:50:15 -07:00
|
|
|
DATABASE_URL=postgresql+asyncpg://postgres:postgres@localhost:5432/surfsense
|
2025-03-14 18:53:14 -07:00
|
|
|
|
2025-06-09 15:50:15 -07:00
|
|
|
SECRET_KEY=SECRET
|
|
|
|
|
NEXT_FRONTEND_URL=http://localhost:3000
|
2025-05-21 20:56:23 -07:00
|
|
|
|
2025-06-10 23:26:28 +07:00
|
|
|
# Auth
|
2025-06-09 15:50:15 -07:00
|
|
|
AUTH_TYPE=GOOGLE or LOCAL
|
2025-05-21 20:56:23 -07:00
|
|
|
# For Google Auth Only
|
2025-06-09 15:50:15 -07:00
|
|
|
GOOGLE_OAUTH_CLIENT_ID=924507538m
|
|
|
|
|
GOOGLE_OAUTH_CLIENT_SECRET=GOCSV
|
2025-08-02 04:39:48 +02:00
|
|
|
GOOGLE_CALENDAR_REDIRECT_URI=http://localhost:8000/api/v1/auth/google/calendar/connector/callback
|
2025-08-04 01:02:35 +02:00
|
|
|
GOOGLE_GMAIL_REDIRECT_URI=http://localhost:8000/api/v1/auth/google/gmail/connector/callback
|
2025-04-20 23:34:21 -07:00
|
|
|
|
2025-08-26 13:56:31 +02:00
|
|
|
# Airtable OAuth
|
|
|
|
|
AIRTABLE_CLIENT_ID=your_airtable_client_id
|
|
|
|
|
AIRTABLE_CLIENT_SECRET=your_airtable_client_secret
|
|
|
|
|
AIRTABLE_REDIRECT_URI=http://localhost:8000/api/v1/auth/airtable/connector/callback
|
|
|
|
|
|
2025-06-10 23:26:28 +07:00
|
|
|
# Embedding Model
|
2025-06-09 15:50:15 -07:00
|
|
|
EMBEDDING_MODEL=mixedbread-ai/mxbai-embed-large-v1
|
2025-03-14 18:53:14 -07:00
|
|
|
|
2025-06-09 15:50:15 -07:00
|
|
|
RERANKERS_MODEL_NAME=ms-marco-MiniLM-L-12-v2
|
|
|
|
|
RERANKERS_MODEL_TYPE=flashrank
|
2025-03-14 18:53:14 -07:00
|
|
|
|
|
|
|
|
|
2025-08-13 17:25:34 -07:00
|
|
|
# TTS_SERVICE=local/kokoro for local Kokoro TTS or
|
2025-06-10 23:26:28 +07:00
|
|
|
# LiteLLM TTS Provider: https://docs.litellm.ai/docs/text_to_speech#supported-providers
|
2025-06-09 15:50:15 -07:00
|
|
|
TTS_SERVICE=openai/tts-1
|
2025-06-10 23:26:28 +07:00
|
|
|
# Respective TTS Service API
|
2025-06-09 15:50:15 -07:00
|
|
|
TTS_SERVICE_API_KEY=
|
2025-06-10 23:26:28 +07:00
|
|
|
# OPTIONAL: TTS Provider API Base
|
2025-06-09 15:50:15 -07:00
|
|
|
TTS_SERVICE_API_BASE=
|
2025-05-05 01:39:31 -07:00
|
|
|
|
2025-06-10 23:26:28 +07:00
|
|
|
# LiteLLM STT Provider: https://docs.litellm.ai/docs/audio_transcription#supported-providers
|
2025-06-09 15:50:15 -07:00
|
|
|
STT_SERVICE=openai/whisper-1
|
2025-06-10 23:26:28 +07:00
|
|
|
# Respective STT Service API
|
2025-06-09 15:50:15 -07:00
|
|
|
STT_SERVICE_API_KEY=""
|
2025-06-10 23:26:28 +07:00
|
|
|
# OPTIONAL: STT Provider API Base
|
2025-06-09 15:50:15 -07:00
|
|
|
STT_SERVICE_API_BASE=
|
2025-05-13 21:13:53 -07:00
|
|
|
|
2025-03-14 18:53:14 -07:00
|
|
|
|
2025-06-09 15:50:15 -07:00
|
|
|
FIRECRAWL_API_KEY=fcr-01J0000000000000000000000
|
2025-04-21 01:36:19 -07:00
|
|
|
|
2025-06-10 23:26:28 +07:00
|
|
|
# File Parser Service
|
2025-07-20 11:42:55 +03:00
|
|
|
ETL_SERVICE=UNSTRUCTURED or LLAMACLOUD or DOCLING
|
2025-06-09 15:50:15 -07:00
|
|
|
UNSTRUCTURED_API_KEY=Tpu3P0U8iy
|
|
|
|
|
LLAMA_CLOUD_API_KEY=llx-nnn
|
2025-05-30 19:17:19 -07:00
|
|
|
|
2025-06-10 23:26:28 +07:00
|
|
|
# OPTIONAL: Add these for LangSmith Observability
|
2025-04-21 01:36:19 -07:00
|
|
|
LANGSMITH_TRACING=true
|
2025-06-09 15:50:15 -07:00
|
|
|
LANGSMITH_ENDPOINT=https://api.smith.langchain.com
|
|
|
|
|
LANGSMITH_API_KEY=lsv2_pt_.....
|
|
|
|
|
LANGSMITH_PROJECT=surfsense
|
|
|
|
|
|
2025-06-10 23:26:28 +07:00
|
|
|
# Uvicorn Server Configuration
|
2025-06-10 22:12:45 +07:00
|
|
|
# Full documentation for Uvicorn options can be found at: https://www.uvicorn.org/#command-line-options
|
2025-06-10 22:52:19 +07:00
|
|
|
UVICORN_HOST="0.0.0.0"
|
|
|
|
|
UVICORN_PORT=8000
|
|
|
|
|
UVICORN_LOG_LEVEL=info
|
2025-06-10 22:06:45 +07:00
|
|
|
|
2025-06-10 23:26:28 +07:00
|
|
|
# OPTIONAL: Advanced Uvicorn Options (uncomment to use)
|
2025-06-10 22:52:19 +07:00
|
|
|
# UVICORN_PROXY_HEADERS=false
|
|
|
|
|
# UVICORN_FORWARDED_ALLOW_IPS="127.0.0.1"
|
|
|
|
|
# UVICORN_WORKERS=1
|
|
|
|
|
# UVICORN_ACCESS_LOG=true
|
|
|
|
|
# UVICORN_LOOP="auto"
|
|
|
|
|
# UVICORN_HTTP="auto"
|
|
|
|
|
# UVICORN_WS="auto"
|
|
|
|
|
# UVICORN_LIFESPAN="auto"
|
|
|
|
|
# UVICORN_LOG_CONFIG=""
|
|
|
|
|
# UVICORN_SERVER_HEADER=true
|
|
|
|
|
# UVICORN_DATE_HEADER=true
|
|
|
|
|
# UVICORN_LIMIT_CONCURRENCY=
|
|
|
|
|
# UVICORN_LIMIT_MAX_REQUESTS=
|
|
|
|
|
# UVICORN_TIMEOUT_KEEP_ALIVE=5
|
|
|
|
|
# UVICORN_TIMEOUT_NOTIFY=30
|
|
|
|
|
# UVICORN_SSL_KEYFILE=""
|
|
|
|
|
# UVICORN_SSL_CERTFILE=""
|
|
|
|
|
# UVICORN_SSL_KEYFILE_PASSWORD=""
|
|
|
|
|
# UVICORN_SSL_VERSION=""
|
|
|
|
|
# UVICORN_SSL_CERT_REQS=""
|
|
|
|
|
# UVICORN_SSL_CA_CERTS=""
|
|
|
|
|
# UVICORN_SSL_CIPHERS=""
|
|
|
|
|
# UVICORN_HEADERS=""
|
|
|
|
|
# UVICORN_USE_COLORS=true
|
|
|
|
|
# UVICORN_UDS=""
|
|
|
|
|
# UVICORN_FD=""
|
|
|
|
|
# UVICORN_ROOT_PATH=""
|