-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
109 lines (88 loc) · 3.84 KB
/
.env.example
File metadata and controls
109 lines (88 loc) · 3.84 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
# FlexGate Environment Configuration
# ==============================================================================
# SECURITY SETTINGS (CRITICAL) ⚠️
# ==============================================================================
# Encryption key for API keys (REQUIRED - no default fallback)
# Generate: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
ENCRYPTION_KEY=
# Demo mode authentication (for testing only - DISABLE in production)
DEMO_MODE=false
DEMO_EMAIL=admin@flexgate.dev
DEMO_PASSWORD=
# ==============================================================================
# CORS CONFIGURATION
# ==============================================================================
# Allowed origins for cross-origin requests (comma-separated)
# Example: https://admin.example.com,https://dashboard.example.com
ALLOWED_ORIGINS=http://localhost:3000,http://localhost:3001,http://127.0.0.1:3000
# ==============================================================================
# DATABASE (PostgreSQL)
# ==============================================================================
DB_HOST=localhost
DB_PORT=5432
DB_NAME=flexgate
DB_USER=flexgate
DB_PASSWORD=flexgate
DB_POOL_SIZE=20
# For production, use strong passwords:
# DB_PASSWORD=<generate-with>: openssl rand -base64 32
# ==============================================================================
# AI PROVIDER SETTINGS
# ==============================================================================
# AI Provider (gemini, claude, openai, groq, demo)
AI_PROVIDER=gemini
# AI API Key (write-once protected)
AI_API_KEY=
# AI Model (provider-specific)
AI_MODEL=gemini-1.5-flash
# AI Settings
AI_MAX_TOKENS=2000
AI_TEMPERATURE=0
# External config file path (optional)
CONFIG_FILE_PATH=./config.json
# ==============================================================================
# SERVER
# ==============================================================================
NODE_ENV=development
PORT=3000
# ==============================================================================
# EINSTRUST SSO (Optional)
# ==============================================================================
# EINSTRUST_API_URL=https://api.einstrust.com
# EINSTRUST_TENANT_ID=your-tenant-id
# EINSTRUST_IDP_ID=your-idp-id
# EINSTRUST_RETURN_URL=http://localhost:3000/auth/callback
# EINSTRUST_SESSION_CACHE_TTL=300
# FLEXGATE_FALLBACK_AUTH=true
# ==============================================================================
# REDIS (Optional)
# ==============================================================================
# REDIS_HOST=localhost
# REDIS_PORT=6379
# REDIS_PASSWORD=
# REDIS_DB=0
# ==============================================================================
# LOGGING
# ==============================================================================
LOG_LEVEL=info
# ==============================================================================
# SECURITY
# ==============================================================================
# Generate with: openssl rand -hex 32
JWT_SECRET=your-secret-key-change-this-in-production
SESSION_SECRET=your-session-secret-change-this-in-production
# ==============================================================================
# CORS
# ==============================================================================
CORS_ORIGIN=*
# For production: CORS_ORIGIN=https://yourdomain.com
# ==============================================================================
# CLAUDE AI INTEGRATION (For AI Incident Analysis)
# ==============================================================================
# Get your API key from: https://console.anthropic.com/
# Required for automatic incident analysis via Claude API
ANTHROPIC_API_KEY=sk-ant-api03-your-api-key-here
# Optional: Claude Configuration
CLAUDE_MODEL=claude-3-5-sonnet-20241022
CLAUDE_MAX_TOKENS=2000
CLAUDE_TEMPERATURE=0