-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
47 lines (39 loc) · 1.65 KB
/
Copy path.env.example
File metadata and controls
47 lines (39 loc) · 1.65 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
# Email Helper API Configuration Example
# Copy this file to .env and configure with your values
# App Configuration
APP_NAME="Email Helper API"
APP_VERSION="1.0.0"
DEBUG=false
HOST="0.0.0.0"
PORT=8000
# Security Settings
SECRET_KEY="your-super-secret-key-change-in-production"
ALGORITHM="HS256"
ACCESS_TOKEN_EXPIRE_MINUTES=30
REFRESH_TOKEN_EXPIRE_DAYS=30
# CORS Settings (for React Native/web frontend)
CORS_ORIGINS=["http://localhost:3000", "http://localhost:8081"]
CORS_ALLOW_CREDENTIALS=true
CORS_ALLOW_METHODS=["GET", "POST", "PUT", "DELETE", "OPTIONS"]
CORS_ALLOW_HEADERS=["*"]
# Database Settings
DATABASE_URL="sqlite:///./runtime_data/email_helper_history.db"
# Azure OpenAI Settings (existing integration)
AZURE_OPENAI_ENDPOINT="https://your-resource.openai.azure.com/"
AZURE_OPENAI_API_KEY="your-azure-openai-key"
AZURE_OPENAI_DEPLOYMENT="gpt-4o"
AZURE_OPENAI_API_VERSION="2024-02-01"
# Microsoft Graph API Settings (T2: Email Service Integration)
# Get these from Azure AD App Registration:
# 1. Go to https://portal.azure.com
# 2. Navigate to Azure Active Directory > App registrations
# 3. Create a new app registration or use existing one
# 4. Copy the values below from the app registration overview page
GRAPH_CLIENT_ID="your-azure-ad-app-client-id"
GRAPH_CLIENT_SECRET="your-azure-ad-app-client-secret"
GRAPH_TENANT_ID="your-azure-ad-tenant-id"
GRAPH_REDIRECT_URI="http://localhost:8000/auth/callback"
# Azure AD App Registration Required Settings:
# - API Permissions: Mail.Read, Mail.ReadWrite, Mail.Send, User.Read
# - Authentication: Add redirect URI matching GRAPH_REDIRECT_URI
# - Certificates & secrets: Create client secret and use value in GRAPH_CLIENT_SECRET