forked from UIUC-Chatbot/ai-ta-backend
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.env.template
56 lines (45 loc) · 1.9 KB
/
.env.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# ALL SERVICES ARE CONFIGURED HERE.
# You can use these defaults, or BYO services to fit your needs.
# The defaults should work 'out of the box' without any changes.
# ⚠️ For Security, we recommend changing all variables marked with CHANGE ME.
# OpenAI key is REQUIRED for Embeddings during ingest & RAG retrieval
OPENAI_API_KEY= # ⚠️ CHANGE ME
# Qdrant Vector DB
QDRANT_URL=http://qdrant:6333 # container name
QDRANT_COLLECTION_NAME=uiuc-chat
QDRANT_API_KEY=your-strong-key-here # ⚠️ CHANGE ME
# Object Storage: You can use either Minio or S3. Choose one, not both. Minio is used by default.
DOCKER_INTERNAL_MINIO_API_PORT=10000
DOCKER_INTERNAL_MINIO_DASHBOARD_PORT=10001
MINIO_URL=http://minio:${DOCKER_INTERNAL_MINIO_API_PORT} # You MUST comment this out if using AWS S3.
AWS_ACCESS_KEY_ID=minioadmin # ⚠️ CHANGE ME
AWS_SECRET_ACCESS_KEY=minioadmin # ⚠️ CHANGE ME
S3_BUCKET_NAME=uiuc-chat
# Minio dashboard and API ports - feel free to change.
PUBLIC_MINIO_API_PORT=9000
PUBLIC_MINIO_DASHBOARD_PORT=9001
# For SQL, you have 3 options: Supabase, Postgres, or SQLite. Choose only one.
# Self-hosted Supabase is used by default, see here for more info on self hosted Supabase: https://supabase.com/docs/guides/self-hosting
# DEFAULT SQL: Supabase
# TODO: FIGURE OUT THE DEFAULTS HERE
# SUPABASE_USER=
# SUPABASE_PASSWORD=
# SUPABASE_URL=
# Or, bring your own Postgres (from outside this repo):
# POSTGRES_USER=
# POSTGRES_PASSWORD=
# POSTGRES_URL=
# Or, use SQLite. I'm a huge fan of SQLite:
# SQLITE_DB_NAME=uiuc-chat-backend-sqlite.db
# Ingest queue state is managed by Redis
INGEST_REDIS_HOST=redis # container name
INGEST_REDIS_PORT=6379
INGEST_REDIS_PASSWORD=your-strong-password-here # ⚠️ CHANGE ME
# Main backend Flask app
FLASK_PORT=8000
# Optional services. Adds functionality if you want it, but not necessary.
# NOMIC_API_KEY=
# POSTHOG_API_KEY=
# SENTRY_DSN=
# EMAIL_SENDER=
# N8N_URL=