Files
pos-system/deployments/local/env.local.example
Ho Ngoc Hai 4da46b5b8e Sure! Pl
2025-12-27 01:31:10 +07:00

55 lines
2.4 KiB
Plaintext

# Local Development Environment Variables (Shared Configs)
# Shared Environment Variables - Shared across all services
# Copy this file to .env.local and fill in your values
#
# Note: Service-specific configs (DATABASE_URL, PORT) should be in services/<service-name>/.env.local
# =============================================================================
# SHARED SECRETS - Must be same across all services for JWT token verification
# =============================================================================
JWT_SECRET=dev-jwt-secret-change-in-production-min-32-chars
JWT_REFRESH_SECRET=dev-refresh-secret-change-in-production-min-32-chars
JWT_EXPIRES_IN=15m
JWT_REFRESH_EXPIRES_IN=7d
# =============================================================================
# SHARED INFRASTRUCTURE - Redis, Traefik
# =============================================================================
# Redis (Docker container name when using docker-compose)
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_PASSWORD=
# =============================================================================
# COMMON CONFIGURATION
# =============================================================================
NODE_ENV=development
LOG_LEVEL=debug
# CORS - Allowed origins for all services
CORS_ORIGIN=http://localhost:3000,http://localhost:3001,http://admin.localhost
# =============================================================================
# MONITORING & TRACING (Optional)
# =============================================================================
TRACING_ENABLED=false
JAEGER_ENDPOINT=http://jaeger:14268/api/traces
# =============================================================================
# EXTERNAL SERVICES (Optional)
# =============================================================================
EMAIL_FROM=noreply@goodgo.vn
# =============================================================================
# NOTES
# =============================================================================
# - Each service should have its own .env.local for service-specific configs:
# * DATABASE_URL (each service has its own database)
# * PORT (each service has different port)
# * SERVICE_NAME
# * REDIS_HOST=localhost (override when running native, Redis in Docker)
#
# - Get Neon database URLs from: https://console.neon.tech
# - Create separate databases for each service (microservices pattern)
# - JWT secrets MUST be identical across all services