Assist_Design/.env.example
T. Narantuya cc2a6a3046 Enhance authentication and password management features
- Added new endpoint for retrieving account status by email in AuthController.
- Implemented change password functionality with validation in AuthService.
- Updated password strength validation to require special characters across relevant DTOs.
- Introduced optional API Access Key in environment configuration for WHMCS.
- Refactored user address update logic in UsersController to improve clarity and maintainability.
- Enhanced error handling in various services to provide more user-friendly messages.
- Updated frontend components to support new password change and account status features.
2025-09-02 13:52:13 +09:00

95 lines
3.8 KiB
Plaintext

plesk# 🚀 Customer Portal - Development Environment Example
# 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"
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 (use your actual credentials)
WHMCS_BASE_URL="https://accounts.asolutions.co.jp"
WHMCS_API_IDENTIFIER="your_whmcs_api_identifier"
WHMCS_API_SECRET="your_whmcs_api_secret"
# Optional: Some deployments require an API Access Key in addition to credentials
# WHMCS_API_ACCESS_KEY="your_whmcs_api_access_key"
# Salesforce Integration (use your actual credentials)
SF_LOGIN_URL="https://asolutions.my.salesforce.com"
SF_CLIENT_ID="your_salesforce_client_id"
SF_PRIVATE_KEY_PATH="./secrets/sf-private.key"
SF_USERNAME="your_salesforce_username"
# Salesforce Pricing
PORTAL_PRICEBOOK_ID="01sTL000008eLVlYAM"
# =============================================================================
# 📊 LOGGING CONFIGURATION (Development)
# =============================================================================
LOG_LEVEL="debug"
LOG_FORMAT="pretty"
# =============================================================================
# 📧 EMAIL CONFIGURATION (Development)
# =============================================================================
# SendGrid (optional for development)
SENDGRID_API_KEY=""
EMAIL_FROM="no-reply@yourdomain.com"
EMAIL_FROM_NAME="Assist Solutions"
EMAIL_ENABLED=false
EMAIL_USE_QUEUE=false
SENDGRID_SANDBOX=true
EMAIL_TEMPLATE_RESET=""
EMAIL_TEMPLATE_WELCOME=""
# =============================================================================
# 🎛️ 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