-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
181 lines (148 loc) · 5.54 KB
/
Copy path.env.example
File metadata and controls
181 lines (148 loc) · 5.54 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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
# ==============================================================================
# Suuupra Platform - Environment Configuration Template
# Copy this file to .env and update with your values
# ==============================================================================
# Environment
NODE_ENV=development
ENVIRONMENT=development
LOG_LEVEL=debug
# ==============================================================================
# DATABASE CONFIGURATION
# ==============================================================================
# PostgreSQL - Primary Database
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_USER=suuupra_dev
POSTGRES_PASSWORD=dev_password_123
POSTGRES_SSL_MODE=disable
# Individual Service Databases
POSTGRES_DB_IDENTITY=identity_dev
POSTGRES_DB_COMMERCE=commerce_dev
POSTGRES_DB_PAYMENTS=payments_dev
POSTGRES_DB_LEDGER=ledger_dev
POSTGRES_DB_ANALYTICS=analytics_dev
POSTGRES_DB_BANK_SIMULATOR=bank_simulator_dev
POSTGRES_DB_UPI_CORE=upi_core_dev
POSTGRES_DB_UPI_PSP=upi_psp_dev
POSTGRES_DB_LIVE_CLASSES=live_classes_dev
POSTGRES_DB_VOD=vod_dev
POSTGRES_DB_LLM_TUTOR=llm_tutor_dev
# Redis Configuration
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=dev_redis_password
REDIS_SSL=false
# MongoDB Configuration
MONGODB_URI=mongodb://localhost:27017/content_dev
# Elasticsearch Configuration
ELASTICSEARCH_NODE=http://localhost:9200
ELASTICSEARCH_USERNAME=elastic
ELASTICSEARCH_PASSWORD=dev_elastic_password
# ==============================================================================
# SECURITY CONFIGURATION
# ==============================================================================
# JWT Configuration
JWT_SECRET=dev_jwt_secret_key_change_in_production
JWT_EXPIRY=24h
JWT_REFRESH_EXPIRY=7d
JWT_ISSUER=https://identity.suuupra.local
JWT_AUDIENCE=suuupra-api
# OAuth Configuration (Development)
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
GITHUB_CLIENT_ID=your-github-client-id
GITHUB_CLIENT_SECRET=your-github-client-secret
# Encryption Keys
ENCRYPTION_KEY=dev_encryption_key_32_characters
AES_ENCRYPTION_KEY=dev_aes_key_change_in_production
# API Keys
OPENAI_API_KEY=sk-your-openai-api-key
ANTHROPIC_API_KEY=your-anthropic-api-key
# ==============================================================================
# SERVICE URLS (Development)
# ==============================================================================
# External URLs
API_GATEWAY_EXTERNAL_URL=http://localhost:3001
FRONTEND_URL=http://localhost:3000
ADMIN_DASHBOARD_URL=http://localhost:3002
# Internal Service URLs
IDENTITY_SERVICE_URL=http://localhost:8081
CONTENT_SERVICE_URL=http://localhost:8082
COMMERCE_SERVICE_URL=http://localhost:8084
PAYMENT_SERVICE_URL=http://localhost:8084
NOTIFICATION_SERVICE_URL=http://localhost:8085
ANALYTICS_SERVICE_URL=http://localhost:8087
MASS_LIVE_SERVICE_URL=http://localhost:8088
LIVE_TRACKING_SERVICE_URL=http://localhost:8089
LLM_TUTOR_SERVICE_URL=http://localhost:8092
UPI_CORE_SERVICE_URL=http://localhost:50051
UPI_PSP_SERVICE_URL=http://localhost:8097
# ==============================================================================
# STORAGE CONFIGURATION
# ==============================================================================
# AWS S3 (Use MinIO for local development)
S3_BUCKET_NAME=suuupra-dev-content
S3_BUCKET_REGION=us-east-1
S3_CDN_URL=http://localhost:9000
# MinIO Configuration (Local S3-compatible storage)
MINIO_ROOT_USER=minioadmin
MINIO_ROOT_PASSWORD=minioadmin
MINIO_ENDPOINT=http://localhost:9000
# ==============================================================================
# PAYMENT CONFIGURATION (Development/Sandbox)
# ==============================================================================
# UPI Configuration
UPI_ACQUIRER_ID=SUUUPRA
UPI_PSP_ID=SUUUPRAPSP
UPI_MERCHANT_ID=SUUUPRA001
UPI_VPA_SUFFIX=@suuupra
# Payment Gateway (Sandbox)
RAZORPAY_KEY_ID=rzp_test_xxx
RAZORPAY_KEY_SECRET=test_razorpay_secret
STRIPE_PUBLISHABLE_KEY=pk_test_xxx
STRIPE_SECRET_KEY=sk_test_xxx
# ==============================================================================
# OBSERVABILITY CONFIGURATION
# ==============================================================================
# Prometheus
PROMETHEUS_METRICS_PORT=9090
PROMETHEUS_ENDPOINT=http://localhost:9090
# Jaeger
JAEGER_ENDPOINT=http://localhost:14268
JAEGER_SAMPLER_TYPE=const
JAEGER_SAMPLER_PARAM=1
# Grafana
GRAFANA_URL=http://localhost:3000
GRAFANA_ADMIN_PASSWORD=admin
# ==============================================================================
# FEATURE FLAGS (Development)
# ==============================================================================
# Content Service Features
ENABLE_CONTENT_VERSIONING=true
ENABLE_APPROVAL_WORKFLOW=false
ENABLE_WEBHOOK_DELIVERY=false
ENABLE_CONTENT_MODERATION=false
ENABLE_BACKGROUND_JOBS=true
# Development Features
ENABLE_DEBUG_MODE=true
ENABLE_SWAGGER_UI=true
ENABLE_PROFILING=true
ENABLE_HOT_RELOAD=true
# ==============================================================================
# RATE LIMITING (Relaxed for Development)
# ==============================================================================
RATE_LIMIT_WINDOW_MS=60000
RATE_LIMIT_MAX_REQUESTS=10000
RATE_LIMIT_MAX_REQUESTS_PER_IP=1000
# ==============================================================================
# SCALING CONFIGURATION (Development)
# ==============================================================================
MIN_REPLICAS=1
MAX_REPLICAS=3
TARGET_CPU_UTILIZATION=80
TARGET_MEMORY_UTILIZATION=85
# Database Connection Pooling
DB_POOL_MIN=2
DB_POOL_MAX=10
DB_POOL_IDLE_TIMEOUT=300
DB_POOL_ACQUIRE_TIMEOUT=10000