-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
275 lines (214 loc) Β· 8.28 KB
/
Copy pathenv.example
File metadata and controls
275 lines (214 loc) Β· 8.28 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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
# π LuxCore Environment Configuration
#
# This file contains all environment variables needed for LuxCore with NovaSanctum integration.
# Copy this file to .env and update the values for your environment.
#
# @author LuxCore Team
# @version 1.0.0
# @since 2024-07-05
# =============================================================================
# π Application Configuration
# =============================================================================
# Application environment
NODE_ENV=development
PORT=3000
FRONTEND_PORT=3001
# Application URLs
FRONTEND_URL=http://localhost:3001
BACKEND_URL=http://localhost:3000
API_URL=http://localhost:3000/api
# =============================================================================
# ποΈ Database Configuration
# =============================================================================
# PostgreSQL database connection
DATABASE_URL="postgresql://username:password@localhost:5432/luxcore?schema=public"
# Database connection pool
DATABASE_POOL_MIN=2
DATABASE_POOL_MAX=10
# =============================================================================
# π‘οΈ NovaSanctum Security Configuration
# =============================================================================
# JWT configuration
NOVASANCTUM_SECRET=your-super-secret-nova-sanctum-key-change-in-production
JWT_SECRET=your-jwt-secret-key-change-in-production
JWT_EXPIRES_IN=24h
REFRESH_TOKEN_EXPIRES_IN=7d
# Password hashing
BCRYPT_ROUNDS=12
# Session configuration
SESSION_SECRET=your-session-secret-change-in-production
SESSION_TIMEOUT_MS=86400000
# Rate limiting
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX=100
AUTH_RATE_LIMIT_MAX=5
# Security settings
MAX_LOGIN_ATTEMPTS=5
LOCKOUT_DURATION_MS=900000
# =============================================================================
# π Authentication & Authorization
# =============================================================================
# CORS configuration
CORS_ORIGIN=http://localhost:3001
CORS_CREDENTIALS=true
# Cookie settings
COOKIE_SECRET=your-cookie-secret-change-in-production
COOKIE_DOMAIN=localhost
COOKIE_SECURE=false
COOKIE_HTTP_ONLY=true
# =============================================================================
# π§ Email Configuration
# =============================================================================
# SMTP settings
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER=your-email@gmail.com
SMTP_PASS=your-app-password
# Email templates
EMAIL_FROM=noreply@luxcore.com
EMAIL_FROM_NAME=LuxCore Team
# =============================================================================
# π Logging Configuration
# =============================================================================
# Log level
LOG_LEVEL=info
# Log files
LOG_FILE_PATH=logs
LOG_MAX_SIZE=5242880
LOG_MAX_FILES=5
# =============================================================================
# π Redis Configuration (Optional)
# =============================================================================
# Redis for session storage and caching
REDIS_URL=redis://localhost:6379
REDIS_PASSWORD=
REDIS_DB=0
# =============================================================================
# π External Services
# =============================================================================
# File upload (AWS S3 or local)
UPLOAD_PROVIDER=local
UPLOAD_PATH=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=your-s3-bucket
# =============================================================================
# π Monitoring & Analytics
# =============================================================================
# Application monitoring
SENTRY_DSN=your-sentry-dsn
NEW_RELIC_LICENSE_KEY=your-new-relic-key
# =============================================================================
# π§ͺ Testing Configuration
# =============================================================================
# Test database
TEST_DATABASE_URL="postgresql://username:password@localhost:5432/luxcore_test?schema=public"
# Test environment
TEST_NODE_ENV=test
# =============================================================================
# π Production Configuration
# =============================================================================
# Production settings (override in production)
PRODUCTION_URL=https://your-domain.com
PRODUCTION_API_URL=https://api.your-domain.com
# SSL/TLS
SSL_KEY_PATH=/path/to/ssl/key.pem
SSL_CERT_PATH=/path/to/ssl/cert.pem
# =============================================================================
# π§ Development Configuration
# =============================================================================
# Development settings
DEV_MODE=true
DEBUG=true
HOT_RELOAD=true
# Development database
DEV_DATABASE_URL="postgresql://username:password@localhost:5432/luxcore_dev?schema=public"
# =============================================================================
# π Feature Flags
# =============================================================================
# Enable/disable features
ENABLE_EMAIL_VERIFICATION=true
ENABLE_TWO_FACTOR_AUTH=true
ENABLE_SOCIAL_LOGIN=false
ENABLE_API_DOCS=true
ENABLE_MONITORING=true
# =============================================================================
# π‘οΈ Security Headers
# =============================================================================
# Security policy
CSP_DEFAULT_SRC="'self'"
CSP_STYLE_SRC="'self' 'unsafe-inline'"
CSP_SCRIPT_SRC="'self'"
CSP_IMG_SRC="'self' data: https:"
# =============================================================================
# π Performance Configuration
# =============================================================================
# Compression
ENABLE_COMPRESSION=true
COMPRESSION_LEVEL=6
# Caching
CACHE_TTL=3600
CACHE_MAX_SIZE=100
# =============================================================================
# π Background Jobs
# =============================================================================
# Job queue
JOB_QUEUE_URL=redis://localhost:6379/1
JOB_CONCURRENCY=5
# =============================================================================
# π± Mobile Configuration
# =============================================================================
# Mobile app settings
MOBILE_API_VERSION=v1
MOBILE_MIN_VERSION=1.0.0
# =============================================================================
# π Internationalization
# =============================================================================
# i18n settings
DEFAULT_LOCALE=en
SUPPORTED_LOCALES=en,es,fr,de
TIMEZONE=UTC
# =============================================================================
# π Documentation
# =============================================================================
# API documentation
API_DOCS_URL=http://localhost:3000/api/docs
SWAGGER_UI_PATH=/api/docs
# =============================================================================
# π§ Maintenance Mode
# =============================================================================
# Maintenance settings
MAINTENANCE_MODE=false
MAINTENANCE_MESSAGE=System is under maintenance. Please try again later.
# =============================================================================
# π Analytics & Tracking
# =============================================================================
# Google Analytics
GA_TRACKING_ID=your-ga-tracking-id
# Mixpanel
MIXPANEL_TOKEN=your-mixpanel-token
# =============================================================================
# π API Keys (External Services)
# =============================================================================
# Payment processing
STRIPE_SECRET_KEY=your-stripe-secret-key
STRIPE_PUBLISHABLE_KEY=your-stripe-publishable-key
# Social media
TWITTER_API_KEY=your-twitter-api-key
TWITTER_API_SECRET=your-twitter-api-secret
# =============================================================================
# π Notes
# =============================================================================
# Remember to:
# 1. Change all default secrets in production
# 2. Use strong, unique passwords
# 3. Enable HTTPS in production
# 4. Set up proper monitoring
# 5. Configure backup strategies
# 6. Set up CI/CD pipelines
# 7. Configure proper logging
# 8. Set up error tracking
# 9. Configure rate limiting
# 10. Set up security scanning