-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.production.example
More file actions
77 lines (61 loc) · 2.78 KB
/
Copy pathenv.production.example
File metadata and controls
77 lines (61 loc) · 2.78 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
# Production Environment Variables for LLM Chat Application
# Copy this file to .env.production and replace with your actual production values
# =============================================================================
# GCP CONFIGURATION
# =============================================================================
PROJECT_ID=your-gcp-project-id
REGION=us-central1
# =============================================================================
# BACKEND CONFIGURATION
# =============================================================================
FLASK_ENV=production
FLASK_DEBUG=false
PORT=8080
# CORS Origins (comma-separated list of allowed origins)
CORS_ORIGINS=https://llm-chat-frontend-your-project-id.a.run.app,https://your-custom-domain.com
# MongoDB Configuration
MONGODB_URI=mongodb+srv://username:password@cluster.mongodb.net/llm_chat_app?retryWrites=true&w=majority
# Security Keys (these should be stored in Google Secret Manager in production)
FLASK_SECRET_KEY=your-flask-secret-key-here
ENCRYPTION_KEY=your-encryption-key-here
# =============================================================================
# FRONTEND CONFIGURATION
# =============================================================================
REACT_APP_API_URL=https://llm-chat-backend-your-project-id.a.run.app/api
REACT_APP_SOCKET_URL=https://llm-chat-backend-your-project-id.a.run.app
# Optional: Analytics and monitoring
REACT_APP_GA_TRACKING_ID=GA_TRACKING_ID_HERE
REACT_APP_SENTRY_DSN=SENTRY_DSN_HERE
# Optional: Feature flags
REACT_APP_ENABLE_ANALYTICS=false
REACT_APP_ENABLE_DEBUG_MODE=false
# Optional: Custom branding
REACT_APP_APP_NAME=LLM Auditor Chat
REACT_APP_APP_VERSION=1.0.0
# =============================================================================
# OPTIONAL CONFIGURATION
# =============================================================================
# Logging Configuration
LOG_LEVEL=INFO
LOG_FORMAT=json
# Rate Limiting
RATE_LIMIT_REQUESTS=100
RATE_LIMIT_WINDOW=900
# Session Configuration
SESSION_COOKIE_SECURE=true
SESSION_COOKIE_HTTPONLY=true
SESSION_COOKIE_SAMESITE=Lax
SESSION_COOKIE_MAX_AGE=3600
# WebSocket Configuration
SOCKETIO_CORS_ALLOWED_ORIGINS=https://llm-chat-frontend-your-project-id.a.run.app
# Monitoring and Analytics
ENABLE_METRICS=true
METRICS_PORT=9090
# =============================================================================
# DEPLOYMENT NOTES
# =============================================================================
# 1. Replace 'your-gcp-project-id' with your actual GCP project ID
# 2. Update MongoDB URI with your actual MongoDB connection string
# 3. Generate secure keys for FLASK_SECRET_KEY and ENCRYPTION_KEY
# 4. Update CORS_ORIGINS with your actual frontend URLs
# 5. For production, use Google Secret Manager instead of environment variables for sensitive data