-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.env.example
More file actions
62 lines (50 loc) · 1.96 KB
/
.env.example
File metadata and controls
62 lines (50 loc) · 1.96 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
# Split-It Environment Configuration
# ===================================
# Copy this file to .env and fill in your values
# NEVER commit .env to version control!
# Server
PORT=5000
NODE_ENV=production
# Database (MongoDB Atlas)
# Get from: https://cloud.mongodb.com
MONGODB_URI=mongodb+srv://username:password@cluster.mongodb.net/splitit?retryWrites=true&w=majority
# Authentication
# Generate with: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
JWT_SECRET=your_32_character_random_string_here
JWT_EXPIRES_IN=7d
# URLs (replace with your domains)
SERVER_URL=https://your-api.vercel.app
CLIENT_URL=https://shubhampatra.github.io/split-it
# Realtime / serverless mode
REALTIME_PROVIDER=polling
ENABLE_IN_PROCESS_SCHEDULER=false
ENABLE_PERSISTENT_TIMERS=false
# CRON_SECRET=generate_a_random_secret
# Cloudinary receipt storage
# CLOUDINARY_CLOUD_NAME=your_cloud_name
# CLOUDINARY_UPLOAD_PRESET=your_unsigned_upload_preset
# CLOUDINARY_API_KEY=your_api_key
# CLOUDINARY_API_SECRET=your_api_secret
# OCR processing mode: inline (legacy) or async (Vercel-friendly)
OCR_PROCESSING_MODE=async
# Optional: Additional CORS origins (comma-separated)
# Leave empty for single-origin setup
# ALLOWED_ORIGINS=https://staging.yourdomain.com,https://app.yourdomain.com
# Google OAuth
# Get from: https://console.cloud.google.com/apis/credentials
GOOGLE_CLIENT_ID=your_client_id.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=your_client_secret
# Email (Gmail with App Password)
# Enable 2FA, then get App Password: https://myaccount.google.com/apppasswords
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your_email@gmail.com
SMTP_PASS=your_16_character_app_password
SMTP_FROM=your_email@gmail.com
# Push Notifications (Optional)
# Generate with: npx web-push generate-vapid-keys
# VAPID_PUBLIC_KEY=
# VAPID_PRIVATE_KEY=
# VAPID_SUBJECT=mailto:your_email@gmail.com
# Poll interval for the realtime client when using the polling transport
REACT_APP_REALTIME_POLL_INTERVAL_MS=2000