-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
146 lines (119 loc) · 4.64 KB
/
env.example
File metadata and controls
146 lines (119 loc) · 4.64 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# ========================================
# ExcelAI Environment Variables Template
# ========================================
# Copy this file to .env.local and fill in your actual values
# DO NOT commit .env.local to version control!
# ========================================
# AI Services
# ========================================
# OpenAI API Key - Get from: https://platform.openai.com/api-keys
OPENAI_API_KEY=sk-your-openai-key-here
# Google Gemini API Key - Get from: https://makersuite.google.com/app/apikey
GEMINI_API_KEY=your-gemini-key-here
# GPT-5 API Key (when available)
# GPT5_API_KEY=your-gpt5-key-here
# ========================================
# Authentication (NextAuth.js)
# ========================================
# Generate a secret: openssl rand -base64 32
NEXTAUTH_SECRET=your-nextauth-secret-here-minimum-32-characters
# Your application URL
NEXTAUTH_URL=http://localhost:3000
# ========================================
# OAuth Providers
# ========================================
# Google OAuth - Get from: https://console.cloud.google.com/apis/credentials
GOOGLE_CLIENT_ID=your-google-client-id.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=your-google-client-secret
# Microsoft OAuth - Get from: https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps
MICROSOFT_CLIENT_ID=your-microsoft-client-id
MICROSOFT_CLIENT_SECRET=your-microsoft-client-secret
# ========================================
# Database
# ========================================
# PostgreSQL connection string
# Format: postgresql://USER:PASSWORD@HOST:PORT/DATABASE
DATABASE_URL=postgresql://postgres:password@localhost:5432/excelai
# ========================================
# Redis (Job Queue)
# ========================================
# Redis connection URL for Bull queue
REDIS_URL=redis://localhost:6379
# ========================================
# Stripe (Payment Processing)
# ========================================
# Get from: https://dashboard.stripe.com/apikeys
STRIPE_SECRET_KEY=sk_test_your-stripe-secret-key
STRIPE_WEBHOOK_SECRET=whsec_your-stripe-webhook-secret
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_your-stripe-publishable-key
# ========================================
# File Storage
# ========================================
# AWS S3 (Optional - for production)
AWS_ACCESS_KEY_ID=your-aws-access-key
AWS_SECRET_ACCESS_KEY=your-aws-secret-key
AWS_REGION=us-east-1
AWS_S3_BUCKET=excelai-uploads
# Cloudflare R2 (Alternative to S3)
# R2_ACCOUNT_ID=your-cloudflare-account-id
# R2_ACCESS_KEY_ID=your-r2-access-key
# R2_SECRET_ACCESS_KEY=your-r2-secret-key
# R2_BUCKET=excelai-uploads
# ========================================
# Email (Optional)
# ========================================
# SendGrid - Get from: https://app.sendgrid.com/settings/api_keys
SENDGRID_API_KEY=SG.your-sendgrid-api-key
EMAIL_FROM=noreply@excelai.com
# ========================================
# Monitoring & Analytics
# ========================================
# Sentry - Get from: https://sentry.io/settings/projects/
NEXT_PUBLIC_SENTRY_DSN=https://your-sentry-dsn@sentry.io/project-id
# LogRocket - Get from: https://app.logrocket.com/settings/projects
NEXT_PUBLIC_LOGROCKET_APP_ID=your-logrocket-app-id
# Vercel Analytics (automatically enabled on Vercel)
# NEXT_PUBLIC_VERCEL_ANALYTICS_ID=auto
# ========================================
# Feature Flags
# ========================================
# Enable/disable features
NEXT_PUBLIC_ENABLE_AUTH=true
NEXT_PUBLIC_ENABLE_PAYMENTS=true
NEXT_PUBLIC_ENABLE_WASM=false
NEXT_PUBLIC_ENABLE_COLLABORATION=false
# ========================================
# Rate Limiting
# ========================================
# Maximum requests per user per day
RATE_LIMIT_FREE_TIER=3
RATE_LIMIT_PAID_TIER=1000
RATE_LIMIT_ENTERPRISE_TIER=unlimited
# ========================================
# File Upload Limits
# ========================================
# Maximum file size in bytes (default: 100MB)
MAX_FILE_SIZE=104857600
# File retention period in hours (default: 24 hours)
FILE_RETENTION_HOURS=24
# ========================================
# Backend API
# ========================================
# Python backend URL
NEXT_PUBLIC_API_URL=http://localhost:8000
# Backend API key for internal communication
BACKEND_API_KEY=your-secure-backend-api-key
# ========================================
# Development
# ========================================
# Enable debug logging
DEBUG=false
# Skip authentication in development (NOT recommended for production)
SKIP_AUTH=false
# ========================================
# Production
# ========================================
# Set to production for production builds
NODE_ENV=development
# Enable/disable telemetry
NEXT_TELEMETRY_DISABLED=0