Assist_Design/.env.backup.20250908_174356
tema c9356cad65 Enhance SIM management service with improved error handling and scheduling
- Added specific checks for SIM data in SimManagementService, including expected SIM number and EID.
- Updated the change plan functionality to automatically schedule changes for the 1st of the next month.
- Enhanced error handling for Freebit API responses with user-friendly messages.
- Implemented invoice update functionality in WHMCS service for better payment processing management.
- Improved logging for debugging and tracking SIM account issues.
2025-09-08 18:31:26 +09:00

100 lines
4.1 KiB
Plaintext

# 🚀 Customer Portal - Development Environment
# Copy this file to .env for local development
# This configuration is optimized for development with hot-reloading
# =============================================================================
# 🗄️ DATABASE CONFIGURATION (Development)
# =============================================================================
DATABASE_URL="postgresql://dev:dev@localhost:5432/portal_dev?schema=public"
# =============================================================================
# 🔴 REDIS CONFIGURATION (Development)
# =============================================================================
REDIS_URL="redis://localhost:6379"
# =============================================================================
# 🌐 APPLICATION CONFIGURATION (Development)
# =============================================================================
# Backend Configuration
BFF_PORT=4000
APP_NAME="customer-portal-bff"
NODE_ENV="development"
# Frontend Configuration (NEXT_PUBLIC_ variables are exposed to browser)
NEXT_PORT=3000
NEXT_PUBLIC_APP_NAME="Customer Portal (Dev)"
NEXT_PUBLIC_APP_VERSION="1.0.0-dev"
NEXT_PUBLIC_API_BASE="http://localhost:4000/api"
NEXT_PUBLIC_ENABLE_DEVTOOLS="true"
# =============================================================================
# 🔐 SECURITY CONFIGURATION (Development)
# =============================================================================
# JWT Secret (Development - OK to use simple secret)
JWT_SECRET="HjHsUyTE3WhPn5N07iSvurdV4hk2VEkIuN+lIflHhVQ="
JWT_EXPIRES_IN="7d"
# Password Hashing (Minimum rounds for security compliance)
BCRYPT_ROUNDS=10
# CORS (Allow local frontend)
CORS_ORIGIN="http://localhost:3000"
# =============================================================================
# 🏢 EXTERNAL API CONFIGURATION (Development)
# =============================================================================
# WHMCS Integration
#WHMCS Dev credentials
WHMCS_DEV_BASE_URL="https://dev-wh.asolutions.co.jp"
WHMCS_DEV_API_IDENTIFIER="WZckHGfzAQEum3v5SAcSfzgvVkPJEF2M"
WHMCS_DEV_API_SECRET="YlqKyynJ6I1088DV6jufFj6cJiW0N0y4"
# Optional: If your WHMCS requires the API Access Key, set it here
# WHMCS_API_ACCESS_KEY="your_whmcs_api_access_key"
# Salesforce Integration
SF_LOGIN_URL="https://asolutions.my.salesforce.com"
SF_CLIENT_ID="3MVG9n_HvETGhr3Af33utEHAR_KbKEQh_.KRzVBBA6u3tSIMraIlY9pqNqKJgUILstAPS4JASzExj3OpCRbLz"
SF_PRIVATE_KEY_PATH="./secrets/sf-private.key"
SF_USERNAME="portal.integration@asolutions.co.jp"
GITHUB_TOKEN=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
# =============================================================================
# 📊 LOGGING CONFIGURATION (Development)
# =============================================================================
LOG_LEVEL="debug"
# Available levels: error, warn, info, debug, trace
# Use "warn" for even less noise, "debug" for troubleshooting
# Disable HTTP request/response logging for cleaner output
DISABLE_HTTP_LOGGING="false"
# =============================================================================
# 🎛️ DEVELOPMENT CONFIGURATION
# =============================================================================
# Node.js options for development
NODE_OPTIONS="--no-deprecation"
# =============================================================================
# 🐳 DOCKER DEVELOPMENT NOTES
# =============================================================================
# For Docker development services (PostgreSQL + Redis only):
# 1. Run: pnpm dev:start
# 2. Frontend and Backend run locally (outside containers) for hot-reloading
# 3. Only database and cache services run in containers
# Freebit API Configuration
FREEBIT_BASE_URL=https://i1-q.mvno.net/emptool/api/
FREEBIT_OEM_ID=PASI
FREEBIT_OEM_KEY=6Au3o7wrQNR07JxFHPmf0YfFqN9a31t5
FREEBIT_TIMEOUT=30000
FREEBIT_RETRY_ATTEMPTS=3
# Salesforce Platform Event
SF_EVENTS_ENABLED=true
SF_PROVISION_EVENT_CHANNEL=/event/Order_Fulfilment_Requested__e
SF_EVENTS_REPLAY=LATEST
SF_PUBSUB_ENDPOINT=api.pubsub.salesforce.com:7443
SF_PUBSUB_NUM_REQUESTED=50
SF_PUBSUB_QUEUE_MAX=100