-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
120 lines (101 loc) · 4.21 KB
/
.env.example
File metadata and controls
120 lines (101 loc) · 4.21 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
# =============================================================================
# FINARVA API - ENVIRONMENT VARIABLES TEMPLATE
# =============================================================================
# Copy this file to .env and fill in your actual values
# Never commit .env files to version control
# =============================================================================
# APPLICATION CONFIGURATION
# =============================================================================
NODE_ENV=development
PORT=3000
API_PREFIX=api/v1
# =============================================================================
# DATABASE CONFIGURATION
# =============================================================================
# PostgreSQL Database URL
# Format: postgresql://username:password@host:port/database?schema=public
DATABASE_URL="postgresql://username:password@localhost:5432/finarva_db?schema=public"
# =============================================================================
# JWT AUTHENTICATION
# =============================================================================
# Generate a strong secret key (256-bit recommended)
# You can use: openssl rand -base64 32
JWT_SECRET=your-super-secret-jwt-key-256-bits-long
JWT_EXPIRES_IN=24h
JWT_REFRESH_SECRET=your-refresh-token-secret
JWT_REFRESH_EXPIRES_IN=7d
# =============================================================================
# AI SERVICE INTEGRATIONS
# =============================================================================
# OpenAI Configuration
OPENAI_API_KEY=sk-your-openai-api-key
OPENAI_MODEL=gpt-4-turbo-preview
OPENAI_MAX_TOKENS=4096
# Google Gemini Configuration
GOOGLE_AI_API_KEY=your-google-ai-api-key
GEMINI_MODEL=gemini-pro
# Pinecone Vector Database
PINECONE_API_KEY=your-pinecone-api-key
PINECONE_ENVIRONMENT=your-pinecone-environment
PINECONE_INDEX_NAME=finarva-knowledge-base
# =============================================================================
# REDIS CONFIGURATION (for caching and queues)
# =============================================================================
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=your-redis-password
REDIS_DB=0
# BullMQ Queue Configuration
QUEUE_HOST=localhost
QUEUE_PORT=6379
QUEUE_PASSWORD=your-queue-password
# =============================================================================
# EXTERNAL SERVICES
# =============================================================================
# Stripe Payment Processing
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
# Email Service (for notifications)
EMAIL_SERVICE=gmail
EMAIL_USER=your-email@example.com
EMAIL_PASSWORD=your-app-password
EMAIL_FROM=noreply@finarva.com
# =============================================================================
# SECURITY CONFIGURATION
# =============================================================================
# CORS Configuration
CORS_ORIGIN=http://localhost:3000,https://yourdomain.com
CORS_CREDENTIALS=true
# Rate Limiting
RATE_LIMIT_TTL=60
RATE_LIMIT_LIMIT=100
# Helmet Security Headers
HELMET_CONTENT_SECURITY_POLICY=false
# =============================================================================
# FILE STORAGE
# =============================================================================
# AWS S3 Configuration (for file uploads)
AWS_ACCESS_KEY_ID=your-aws-access-key
AWS_SECRET_ACCESS_KEY=your-aws-secret-key
AWS_REGION=us-east-1
AWS_S3_BUCKET=finarva-storage
# =============================================================================
# LOGGING & MONITORING
# =============================================================================
# Application Logging Level
LOG_LEVEL=info
LOG_FORMAT=json
# Sentry Error Tracking (optional)
SENTRY_DSN=https://your-sentry-dsn
# =============================================================================
# DEVELOPMENT & TESTING
# =============================================================================
# Test Database URL (separate from production)
TEST_DATABASE_URL="postgresql://username:password@localhost:5432/finarva_test_db?schema=public"
# API Documentation
SWAGGER_ENABLED=true
SWAGGER_PATH=api/docs
# Debug Mode
DEBUG=false
VERBOSE_LOGGING=false