-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
161 lines (120 loc) · 5.79 KB
/
.env.example
File metadata and controls
161 lines (120 loc) · 5.79 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
# Vectoryon Platform - Environment Variables Template
# Copy this file to .env and fill in your actual values
# ⚠️ NEVER commit .env files with real credentials to version control!
# =============================================================================
# Supabase Configuration (REQUIRED)
# =============================================================================
# Get these from: https://supabase.com/dashboard/project/YOUR_PROJECT/settings/api
NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key-here
SUPABASE_SERVICE_ROLE_KEY=your-service-role-key-here
# =============================================================================
# Application URLs (REQUIRED)
# =============================================================================
# Development: http://localhost:3000
# Production: https://your-domain.com
NEXT_PUBLIC_APP_URL=http://localhost:3000
# =============================================================================
# Azure OpenAI Configuration (OPTIONAL - for AI features)
# =============================================================================
# Get these from: https://portal.azure.com
AZURE_OPENAI_API_KEY=your-azure-openai-key
AZURE_OPENAI_ENDPOINT=https://your-resource.openai.azure.com
AZURE_OPENAI_DEPLOYMENT_NAME=gpt-4
AZURE_OPENAI_API_VERSION=2024-02-15-preview
# =============================================================================
# Authentication (OPTIONAL - for OAuth)
# =============================================================================
# Microsoft OAuth (Azure AD)
MICROSOFT_CLIENT_ID=your-client-id
MICROSOFT_CLIENT_SECRET=your-client-secret
MICROSOFT_TENANT_ID=your-tenant-id
# =============================================================================
# Environment Configuration
# =============================================================================
# Environment: development | staging | production
NODE_ENV=development
# Enable debug logging
DEBUG=false
# =============================================================================
# Database Configuration (OPTIONAL - if using direct PostgreSQL)
# =============================================================================
DATABASE_URL=postgresql://user:password@localhost:5432/vectoryon
# =============================================================================
# Email Configuration (OPTIONAL - for email tools)
# =============================================================================
# SMTP for sending emails
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your-email@gmail.com
SMTP_PASS=your-app-password
# =============================================================================
# Tool-Specific Configuration
# =============================================================================
# Email Context Tool
EMAIL_SYNC_ENABLED=true
EMAIL_SYNC_INTERVAL_MINUTES=15
# Deep Research Tool
RESEARCH_MAX_DEPTH=3
RESEARCH_TIMEOUT_SECONDS=300
# =============================================================================
# Security Configuration
# =============================================================================
# JWT Secret (generate with: openssl rand -base64 32)
JWT_SECRET=your-jwt-secret-here
# Session Secret
SESSION_SECRET=your-session-secret-here
# CORS Allowed Origins (comma-separated)
CORS_ORIGINS=http://localhost:3000,https://your-domain.com
# =============================================================================
# Feature Flags (OPTIONAL)
# =============================================================================
# Enable/disable features
FEATURE_WORKFLOWS=true
FEATURE_AI_ANALYSIS=true
FEATURE_DOCUMENT_PARSING=true
FEATURE_EMAIL_SYNC=true
# =============================================================================
# Analytics & Monitoring (OPTIONAL)
# =============================================================================
# Sentry for error tracking
SENTRY_DSN=your-sentry-dsn
SENTRY_ENVIRONMENT=development
# Vercel Analytics
VERCEL_ANALYTICS_ID=your-analytics-id
# =============================================================================
# Rate Limiting (OPTIONAL)
# =============================================================================
RATE_LIMIT_MAX_REQUESTS=100
RATE_LIMIT_WINDOW_MINUTES=15
# =============================================================================
# Notes
# =============================================================================
# 1. Copy this file to .env:
# cp .env.example .env
# 2. Fill in your actual values in .env
# 3. .env is automatically ignored by git (see .gitignore)
# 4. NEVER commit secrets to version control
# 5. For production, use Azure Key Vault or similar secret management
# 6. Restart your development server after changing environment variables
# =============================================================================
# Security Best Practices
# =============================================================================
# ✅ DO:
# - Use different credentials for dev/staging/production
# - Rotate secrets regularly
# - Use environment-specific secrets
# - Store production secrets in secure vault (Azure Key Vault, AWS Secrets Manager)
# - Use minimum required permissions
# ❌ DON'T:
# - Commit .env files to git
# - Share secrets via email or chat
# - Use production credentials in development
# - Hardcode secrets in source code
# - Use weak or default passwords
# =============================================================================
# Support
# =============================================================================
# Questions about environment setup?
# Email: dev@kinnovations.ch
# Docs: https://github.com/vectoryon/platform-docs