mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-05-31 02:01:16 +02:00
Introducing permissioning, standardize onboarding for connectors, re-make the data model for connectors / credentials / index-attempts, making all environment variables optional, a bunch of small fixes + improvements. Co-authored-by: Weves <chrisweaver101@gmail.com>
45 lines
1.5 KiB
Plaintext
45 lines
1.5 KiB
Plaintext
# Fill in the values and copy the contents of this file to .env in the deployment directory
|
|
# Some valid default values are provided where applicable, delete the variables which you don't set values for
|
|
|
|
|
|
# Insert your OpenAI API key here, currently the only Generative AI endpoint for QA that we support is OpenAI
|
|
# If not provided here, UI will prompt on setup
|
|
OPENAI_API_KEY=
|
|
# Choose between "openai-chat-completion" and "openai-completion"
|
|
INTERNAL_MODEL_VERSION=openai-chat-completion
|
|
# Use a valid model for the choice above, consult https://platform.openai.com/docs/models/model-endpoint-compatibility
|
|
OPENAI_MODEL_VERSION=gpt-4
|
|
|
|
# Could be something like danswer.companyname.com. Requires additional setup if not localhost
|
|
WEB_DOMAIN=http://localhost:3000
|
|
|
|
|
|
# BACKEND DB can leave these as defaults
|
|
POSTGRES_USER=postgres
|
|
POSTGRES_PASSWORD=password
|
|
|
|
|
|
# AUTH CONFIGS
|
|
DISABLE_AUTH=False
|
|
|
|
# Currently frontend page doesn't have basic auth, use OAuth if user auth is enabled.
|
|
ENABLE_OAUTH=True
|
|
# The two settings below are only required if ENABLE_OAUTH is true
|
|
GOOGLE_OAUTH_CLIENT_ID=
|
|
GOOGLE_OAUTH_CLIENT_SECRET=
|
|
|
|
# Used to generate values for security verification, use a random string
|
|
SECRET=
|
|
|
|
# How long before user needs to reauthenticate, default to 1 day. (cookie expiration time)
|
|
SESSION_EXPIRE_TIME_SECONDS=86400
|
|
|
|
# Only relevant if using basic auth (not supported on frontend yet)
|
|
REQUIRE_EMAIL_VERIFICATION=True
|
|
# The five settings below are only required if REQUIRE_EMAIL_VERIFICATION is True
|
|
VALID_EMAIL_DOMAIN=
|
|
SMTP_SERVER=
|
|
SMTP_PORT=
|
|
SMTP_USER=
|
|
SMTP_PASS=
|