-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.template
More file actions
131 lines (97 loc) · 3.87 KB
/
.env.template
File metadata and controls
131 lines (97 loc) · 3.87 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
# NeuroPrep AI - Environment Variables Template
# Copy this file and fill in the values for your deployment
# ===================================
# FRONTEND ENVIRONMENT VARIABLES
# ===================================
# Backend API URL (replace with your actual backend URL from Vercel)
NEXT_PUBLIC_API_URL=https://your-backend-url.vercel.app
# WebSocket URL (same as API URL)
NEXT_PUBLIC_WS_URL=https://your-backend-url.vercel.app
# NextAuth Configuration
# Generate with: openssl rand -base64 32
NEXTAUTH_SECRET=your-super-secret-key-here-generate-with-openssl
# Your frontend URL (will be provided by Vercel after deployment)
NEXTAUTH_URL=https://your-frontend-url.vercel.app
# TensorFlow.js Backend (WebGPU for better performance)
NEXT_PUBLIC_TFJS_BACKEND=webgpu
# Enable Gaussian Splats for 3D rendering
NEXT_PUBLIC_ENABLE_GAUSSIAN_SPLATS=true
# ===================================
# BACKEND ENVIRONMENT VARIABLES
# ===================================
# Node Environment
NODE_ENV=production
# Port (Vercel uses this internally)
PORT=5000
# CORS Configuration (must match your frontend URL exactly)
CORS_ORIGIN=https://your-frontend-url.vercel.app
# Frontend URL (same as CORS_ORIGIN)
FRONTEND_URL=https://your-frontend-url.vercel.app
# Session Secret (generate with: openssl rand -base64 32)
SESSION_SECRET=your-session-secret-here
# JWT Secret (generate with: openssl rand -base64 32)
JWT_SECRET=your-jwt-secret-here
# ===================================
# OPTIONAL: AI API KEYS
# System works without these using mock responses
# ===================================
# OpenAI API Key (for GPT models)
# Get from: https://platform.openai.com/api-keys
OPENAI_API_KEY=sk-proj-your-openai-key-here
# Anthropic API Key (for Claude models)
# Get from: https://console.anthropic.com/
ANTHROPIC_API_KEY=sk-ant-your-anthropic-key-here
# Google Gemini API Key
# Get from: https://makersuite.google.com/app/apikey
GEMINI_API_KEY=your-gemini-key-here
# ===================================
# OPTIONAL: SOCIAL LOGIN
# ===================================
# Google OAuth
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
# LinkedIn OAuth
LINKEDIN_CLIENT_ID=your-linkedin-client-id
LINKEDIN_CLIENT_SECRET=your-linkedin-client-secret
# Twitter OAuth
TWITTER_CONSUMER_KEY=your-twitter-key
TWITTER_CONSUMER_SECRET=your-twitter-secret
# ===================================
# OPTIONAL: DATABASE (for persistence)
# ===================================
# PostgreSQL Database URL (use Vercel Postgres or other provider)
DATABASE_URL=postgresql://user:password@host:port/database
# Redis URL (for distributed sessions)
REDIS_URL=redis://user:password@host:port
# ===================================
# OPTIONAL: STRIPE (for payments)
# ===================================
# Stripe API Keys
STRIPE_SECRET_KEY=sk_test_your-stripe-secret-key
STRIPE_PUBLISHABLE_KEY=pk_test_your-stripe-publishable-key
STRIPE_WEBHOOK_SECRET=whsec_your-webhook-secret
# ===================================
# HOW TO USE THIS FILE
# ===================================
# For Local Development:
# 1. Copy this file to .env in frontend/ and backend/
# 2. Fill in the values
# 3. For local development, use:
# - NEXT_PUBLIC_API_URL=http://localhost:5000
# - CORS_ORIGIN=http://localhost:3000
# For Vercel Deployment:
# 1. Don't commit .env files (they're in .gitignore)
# 2. Add each variable in Vercel Dashboard:
# - Go to Project Settings → Environment Variables
# - Add each variable for the production environment
# 3. Or use Vercel CLI:
# vercel env add VARIABLE_NAME production
# ===================================
# GENERATE SECRETS
# ===================================
# Option 1: Using OpenSSL (recommended)
# openssl rand -base64 32
# Option 2: Using Node.js
# node -e "console.log(require('crypto').randomBytes(32).toString('base64'))"
# Option 3: Online Generator
# Visit: https://generate-secret.vercel.app/32