forked from Divineifed1/StrellerMinds-Backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevelopment.env.example
More file actions
147 lines (120 loc) · 3.36 KB
/
Copy pathdevelopment.env.example
File metadata and controls
147 lines (120 loc) · 3.36 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
# Email Tracking
EMAIL_TRACKING_ENABLED=true
EMAIL_TRACKING_SECRET=please-change-me-to-a-32-plus-char-secret
EMAIL_TRACKING_BASE_URL=http://localhost:3000
# StrellerMinds Backend - Development Environment Configuration
# Copy this file to .env.development and modify as needed
# This file contains environment variables for local development using Docker Compose
# Application Configuration
NODE_ENV=development
PORT=3000
HOST=0.0.0.0
# Database Configuration (PostgreSQL)
DATABASE_HOST=localhost
DATABASE_PORT=5432
DATABASE_USER=postgres
DATABASE_PASSWORD=postgres
DATABASE_NAME=strellerminds_dev
DATABASE_SYNC=true
DATABASE_LOAD=true
DATABASE_SSL=false
# Database Connection Pool Settings
DATABASE_POOL_MAX=20
DATABASE_POOL_MIN=5
DATABASE_IDLE_TIMEOUT=30000
DATABASE_RETRY_ATTEMPTS=5
DATABASE_RETRY_DELAY=3000
# Redis Configuration
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=redis_password
REDIS_DB=0
REDIS_MAX_RETRIES=3
# Cache Configuration
CACHE_STRATEGY=redis
CACHE_TTL=300
CACHE_MAX_ITEMS=1000
# Email Configuration (Mailhog)
EMAIL_HOST=localhost
EMAIL_PORT=1025
EMAIL_SECURE=false
EMAIL_USER=
EMAIL_PASSWORD=
EMAIL_FROM=noreply@strellerminds.local
EMAIL_ENABLED=true
# SMTP Configuration (for alerts and notifications)
SMTP_HOST=localhost
SMTP_PORT=1025
SMTP_SECURE=false
SMTP_USER=
SMTP_PASS=
# AWS S3 Configuration (LocalStack)
AWS_ACCESS_KEY_ID=test
AWS_SECRET_ACCESS_KEY=test
AWS_S3_BUCKET=strellerminds-dev-storage
AWS_S3_REGION=us-east-1
AWS_S3_ENDPOINT=http://localhost:4566
AWS_S3_FORCE_PATH_STYLE=true
# JWT Configuration
JWT_SECRET=development_jwt_secret_key_change_in_production
JWT_EXPIRES_IN=1h
JWT_REFRESH_EXPIRES_IN=7d
# Frontend URL
FRONTEND_URL=http://localhost:3001
BASE_URL=http://localhost:3000
# API Configuration
API_VERSION=v2
API_PREFIX=api
# CORS Configuration
CORS_ENABLED=true
CORS_ORIGINS=http://localhost:3001,http://localhost:3000
# Rate Limiting - Global
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=100
# Rate Limiting - Per-Endpoint Overrides
# Format: limit,ttl (e.g., "5,60" = 5 requests per 60 seconds)
# Auth endpoints
RATE_LIMIT_AUTH_LOGIN=10,60
RATE_LIMIT_AUTH_REGISTER=5,60
RATE_LIMIT_AUTH_RESET=3,60
# File operations
RATE_LIMIT_FILES_UPLOAD=20,60
RATE_LIMIT_FILES_DOWNLOAD=50,60
# Blockchain operations
RATE_LIMIT_BLOCKCHAIN_TX=10,60
RATE_LIMIT_WALLET_CONNECT=10,60
# Logging Configuration
LOG_LEVEL=debug
LOG_FORMAT=json
LOG_FILE_ENABLED=false
# Monitoring Configuration
MONITORING_ENABLED=true
METRICS_ENABLED=true
# Distributed Tracing Configuration
TRACING_ENABLED=true
TRACING_SERVICE_NAME=strellerminds-backend
TRACING_SERVICE_VERSION=1.0.0
TRACING_SAMPLING_ENABLED=true
TRACING_SAMPLING_RATIO=0.1
# Jaeger Tracing (Optional)
TRACING_JAEGER_ENABLED=false
TRACING_JAEGER_ENDPOINT=http://localhost:14268/api/traces
# Zipkin Tracing (Optional)
TRACING_ZIPKIN_ENABLED=false
TRACING_ZIPKIN_ENDPOINT=http://localhost:9411/api/v2/spans
# OTLP Tracing (Optional - for Jaeger, Zipkin, or other OTLP-compatible backends)
TRACING_OTLP_ENABLED=true
TRACING_OTLP_ENDPOINT=http://localhost:4318/v1/traces
# Security Configuration
BCRYPT_ROUNDS=10
# File Upload Configuration
MAX_FILE_SIZE=10485760
UPLOAD_PATH=uploads
# Stellar Configuration (Testnet)
STELLAR_NETWORK=testnet
STELLAR_HORIZON_URL=https://horizon-testnet.stellar.org
# Feature Flags
FEATURES=email,notifications,analytics,blockchain
# Development Specific
DEBUG=true
VERBOSE_LOGGING=true