Spaces:
Running
Running
Commit ·
f2b8465
1
Parent(s): cbc1d5b
feat: Add environment configuration file for E-Commerce Microservice
Browse files- .env.example +61 -0
.env.example
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# E-Commerce Microservice Environment Configuration
|
| 2 |
+
|
| 3 |
+
# Application Configuration
|
| 4 |
+
APP_NAME=App Microservice
|
| 5 |
+
APP_VERSION=1.0.0
|
| 6 |
+
DEBUG=false
|
| 7 |
+
|
| 8 |
+
# MongoDB Configuration
|
| 9 |
+
MONGODB_URI=mongodb://localhost:27017
|
| 10 |
+
# For MongoDB Atlas: mongodb+srv://username:password@cluster.mongodb.net/?retryWrites=true&w=majority
|
| 11 |
+
MONGODB_DB_NAME=cuatrolabs
|
| 12 |
+
|
| 13 |
+
# PostgreSQL Configuration
|
| 14 |
+
DB_PROTOCOL=postgresql+asyncpg
|
| 15 |
+
DB_USER=your-db-user
|
| 16 |
+
DB_PASSWORD=your-db-password
|
| 17 |
+
DB_HOST=localhost
|
| 18 |
+
DB_PORT=5432
|
| 19 |
+
DB_NAME=cuatrolabs
|
| 20 |
+
DB_SSLMODE=disable
|
| 21 |
+
POSTGRES_MIN_POOL_SIZE=5
|
| 22 |
+
POSTGRES_MAX_POOL_SIZE=20
|
| 23 |
+
POSTGRES_CONNECT_MAX_RETRIES=20
|
| 24 |
+
POSTGRES_CONNECT_INITIAL_DELAY_MS=500
|
| 25 |
+
POSTGRES_CONNECT_BACKOFF_MULTIPLIER=1.5
|
| 26 |
+
DATABASE_URL=postgresql+asyncpg://your-db-user:your-db-password@localhost:5432/cuatrolabs
|
| 27 |
+
|
| 28 |
+
# Redis Configuration (for caching and session management)
|
| 29 |
+
REDIS_HOST=localhost
|
| 30 |
+
REDIS_PORT=6379
|
| 31 |
+
REDIS_PASSWORD=your-redis-password
|
| 32 |
+
REDIS_DB=0
|
| 33 |
+
|
| 34 |
+
# JWT Configuration
|
| 35 |
+
SECRET_KEY=your-secret-key-here-change-in-production
|
| 36 |
+
ALGORITHM=HS256
|
| 37 |
+
TOKEN_EXPIRATION_HOURS=8
|
| 38 |
+
|
| 39 |
+
# OTP Configuration
|
| 40 |
+
OTP_TTL_SECONDS=600
|
| 41 |
+
OTP_RATE_LIMIT_MAX=10
|
| 42 |
+
OTP_RATE_LIMIT_WINDOW=600
|
| 43 |
+
|
| 44 |
+
# Twilio Configuration (SMS)
|
| 45 |
+
TWILIO_ACCOUNT_SID=
|
| 46 |
+
TWILIO_AUTH_TOKEN=
|
| 47 |
+
TWILIO_PHONE_NUMBER=
|
| 48 |
+
|
| 49 |
+
# SMTP Configuration (Email)
|
| 50 |
+
SMTP_HOST=
|
| 51 |
+
SMTP_PORT=587
|
| 52 |
+
SMTP_USERNAME=
|
| 53 |
+
SMTP_PASSWORD=
|
| 54 |
+
SMTP_FROM_EMAIL=
|
| 55 |
+
SMTP_USE_TLS=true
|
| 56 |
+
|
| 57 |
+
# Logging Configuration
|
| 58 |
+
LOG_LEVEL=INFO
|
| 59 |
+
|
| 60 |
+
# CORS Settings
|
| 61 |
+
CORS_ORIGINS=["http://localhost:3000","http://localhost:8000","http://localhost:8002"]
|