-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
111 lines (87 loc) · 2.86 KB
/
.env.example
File metadata and controls
111 lines (87 loc) · 2.86 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
# ===========================================
# Analytics SaaS Platform - Environment Config
# ===========================================
# Application
NODE_ENV=development
APP_NAME=analytics-saas
APP_VERSION=1.0.0
# ===========================================
# Backend Configuration
# ===========================================
# Server
BACKEND_PORT=4000
BACKEND_HOST=0.0.0.0
# Database - PostgreSQL
DATABASE_HOST=postgres
DATABASE_PORT=5432
DATABASE_NAME=analytics_saas
DATABASE_USER=postgres
DATABASE_PASSWORD=your_secure_password_here
DATABASE_URL=postgresql://${DATABASE_USER}:${DATABASE_PASSWORD}@${DATABASE_HOST}:${DATABASE_PORT}/${DATABASE_NAME}
# Cache - Redis
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_PASSWORD=your_redis_password_here
REDIS_URL=redis://:${REDIS_PASSWORD}@${REDIS_HOST}:${REDIS_PORT}
# Authentication - JWT
JWT_SECRET=your_super_secret_jwt_key_min_32_chars
JWT_EXPIRES_IN=15m
JWT_REFRESH_SECRET=your_super_secret_refresh_key_min_32_chars
JWT_REFRESH_EXPIRES_IN=7d
# Rate Limiting
RATE_LIMIT_TTL=60
RATE_LIMIT_LIMIT=100
# ===========================================
# Frontend Configuration
# ===========================================
NEXT_PUBLIC_API_URL=http://localhost:4000
NEXT_PUBLIC_WS_URL=ws://localhost:4000
NEXT_PUBLIC_APP_NAME=Analytics SaaS
# ===========================================
# Multi-Tenancy
# ===========================================
DEFAULT_TENANT_ID=default
TENANT_HEADER=x-tenant-id
TENANT_SUBDOMAIN_ENABLED=false
# ===========================================
# AI/ML Integration
# ===========================================
# OpenAI (Primary)
OPENAI_API_KEY=sk-your-openai-api-key
OPENAI_MODEL=gpt-4-turbo-preview
OPENAI_EMBEDDING_MODEL=text-embedding-3-small
# Google Vertex AI (Alternative)
GOOGLE_CLOUD_PROJECT=your-gcp-project
GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json
# ===========================================
# Email / Notifications
# ===========================================
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_USER=notifications@example.com
SMTP_PASSWORD=your_smtp_password
SMTP_FROM=Analytics SaaS <notifications@example.com>
# ===========================================
# Storage (for reports, exports)
# ===========================================
STORAGE_TYPE=local
STORAGE_LOCAL_PATH=./uploads
# S3 Compatible (optional)
S3_BUCKET=analytics-saas-uploads
S3_REGION=us-east-1
S3_ACCESS_KEY=your_access_key
S3_SECRET_KEY=your_secret_key
S3_ENDPOINT=https://s3.amazonaws.com
# ===========================================
# Monitoring & Logging
# ===========================================
LOG_LEVEL=debug
LOG_FORMAT=json
# Sentry (optional)
SENTRY_DSN=https://your-sentry-dsn
# ===========================================
# Feature Flags
# ===========================================
FEATURE_PREDICTIONS_ENABLED=true
FEATURE_AUTOMATED_REPORTS_ENABLED=true
FEATURE_REALTIME_DASHBOARD_ENABLED=true