forked from felton/email-agent-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
46 lines (36 loc) · 1.56 KB
/
.env.example
File metadata and controls
46 lines (36 loc) · 1.56 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
# Application Environment
NODE_ENV=development
# Database Configuration (Postgres)
DATABASE_TYPE=postgres
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=email_agent
DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB} # replace db (Docker reference) with localhost if running locally
# OpenAI
OPENAI_API_KEY=
# OpenAI Model Selection
OPENAI_SUMMARY_MODEL=gpt-3.5-turbo
OPENAI_REPORT_MODEL=gpt-4o-2024-08-06
OPENAI_EMBEDDING_MODEL=text-embedding-3-small
# Dynamic Model Limits
USE_DYNAMIC_MODEL_LIMITS=true
# Microsoft Graph API (OAuth setup)
# These need NEXT_PUBLIC_ prefix to be accessible on client-side
NEXT_PUBLIC_AZURE_CLIENT_ID=your-application-client-id
NEXT_PUBLIC_AZURE_TENANT_ID=your-directory-tenant-id
NEXT_PUBLIC_AZURE_REDIRECT_URI=http://localhost:3000/api/auth/callback
# Domain restriction
ALLOWED_EMAIL_DOMAIN=yourdomain.com
# Admin emails - comma-separated list
# Webhook (still needed for backwards compatibility)
WEBHOOK_SECRET=some-random-string
# Email Processing Limits and Batch Sizes
# These variables control the limits for email processing and fetch operations
EMAIL_FETCH_LIMIT=1000 # Maximum number of emails to fetch for reports
EMAIL_PROCESSING_BATCH_SIZE=200 # Number of emails to process in background tasks
EMAIL_EMBEDDING_BATCH_SIZE=200 # Number of emails to create embeddings for
EMBEDDING_BATCH_SIZE=20 # Size of each embedding batch to process at once
# PostHog Analytics
NEXT_PUBLIC_POSTHOG_KEY=
NEXT_PUBLIC_POSTHOG_HOST=