-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.env.template
More file actions
110 lines (90 loc) · 4.02 KB
/
.env.template
File metadata and controls
110 lines (90 loc) · 4.02 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# =============================================================================
# OPENAI CONFIGURATION - REQUIRED FOR EMBEDDINGS AND RAG
# =============================================================================
# Required for embeddings during ingest & RAG retrieval
OPENAI_API_KEY=
VLADS_OPENAI_KEY="${OPENAI_API_KEY}"
# =============================================================================
# REDIS CONFIGURATION
# =============================================================================
# Replace ${INGEST_REDIS_PASSWORD} with your actual Redis password
INGEST_REDIS_HOST="redis"
INGEST_REDIS_PORT="6379"
INGEST_REDIS_PASSWORD="your-strong-password-here"
REDIS_URL="redis://default:${INGEST_REDIS_PASSWORD}@localhost:6379"
REDIS_PASSWORD="${INGEST_REDIS_PASSWORD}"
# =============================================================================
# FRONTEND SERVICES
# =============================================================================
FRONTEND_PORT=3001
# =============================================================================
# BACKEND SERVICES
# =============================================================================
# Main Flask backend app
FLASK_PORT=3012
RAILWAY_URL="http://127.0.0.1:8000"
INGEST_URL=http://127.0.0.1:8000/ingest
# Ollama configuration
OLLAMA_SERVER_URL="http://localhost:11434"
# =============================================================================
# STORAGE CONFIGURATION
# =============================================================================
# Object Storage - Choose EITHER Minio OR AWS S3
# Minio configuration (default)
PUBLIC_MINIO_API_PORT=9001
PUBLIC_MINIO_DASHBOARD_PORT=9002
DOCKER_INTERNAL_MINIO_API_PORT=10000
DOCKER_INTERNAL_MINIO_DASHBOARD_PORT=10001
MINIO_URL="http://localhost:${DOCKER_INTERNAL_MINIO_API_PORT}"
NEXT_PUBLIC_S3_ENDPOINT="http://localhost:${PUBLIC_MINIO_API_PORT}"
LOCAL_MINIO="true"
AWS_ACCESS_KEY_ID="minioadmin"
AWS_SECRET_ACCESS_KEY="minioadmin"
S3_BUCKET_NAME=illinois-chat
# =============================================================================
# DATABASE CONFIGURATION
# =============================================================================
# Choose ONE database option: Postgres (default), or SQLite
POSTGRES_PASSWORD=password
POSTGRES_ENDPOINT=localhost
POSTGRES_PORT=5432
POSTGRES_DATABASE=postgres
POSTGRES_USERNAME=postgres
KEYCLOAK_DB_USERNAME=postgres
KEYCLOAK_DB_PASSWORD=password
KEYCLOAK_DB_ENDPOINT=localhost
KEYCLOAK_DB_PORT=5433
KEYCLOAK_DB_DATABASE=postgres
# Option 2: SQLite (uncomment to use)
# SQLITE_DB_NAME=uiuc-chat-backend-sqlite.db
# =============================================================================
# VECTOR DB CONFIGURATION
# =============================================================================
QDRANT_API_KEY="your-strong-key-here"
QDRANT_COLLECTION_NAME=uiuc-chat
QDRANT_URL=http://localhost:6333
# =============================================================================
# AUTHENTICATION & SECURITY
# =============================================================================
NEXT_PUBLIC_SIGNING_KEY=""
# Keycloak auth (must match the keycloak service in docker-compose.yaml, and backend .env)
KEYCLOAK_ADMIN_USERNAME=admin
KEYCLOAK_ADMIN_PASSWORD=admin
KC_HOSTNAME=localhost
# Keycloak Frontend Specific Variables
# For browser access, use the public port mapping
NEXT_PUBLIC_KEYCLOAK_REALM=illinois_chat_realm
NEXT_PUBLIC_KEYCLOAK_CLIENT_ID=illinois_chat
NEXT_PUBLIC_USE_ILLINOIS_CHAT_CONFIG=True
NEXT_PUBLIC_ILLINOIS_CHAT_BANNER_CONTENT="We’re preparing for launch. Your previous chatbots are still available in <a href="https://uiuc.chat/" class="underline">UIUC Chat</a>."
#NEXT_PUBLIC_USE_ILLINOIS_CHAT_CONFIG=False
# =============================================================================
# ANALYTICS & MONITORING (OPTIONAL)
# =============================================================================
# PostHog configuration
# NEXT_PUBLIC_POSTHOG_HOST=http://localhost:6006
# NEXT_PUBLIC_POSTHOG_KEY=
# POSTHOG_API_KEY=
# Other optional integrations
# NOMIC_API_KEY=
# SENTRY_DSN=