# cPanel Environment Variables Template # Copy these variables to your cPanel Node.js Selector for each application # ============================================ # BACKEND API (api.yourdomain.com) # ============================================ NODE_ENV=production PORT=5000 DATABASE_URL=postgresql://username_rms_user:password@localhost:5432/username_de_fusion_flame?schema=public JWT_SECRET=your-super-secret-jwt-key-min-32-characters-change-this JWT_EXPIRE=7d PAYSTACK_SECRET_KEY=sk_live_your_paystack_secret_key PAYSTACK_PUBLIC_KEY=pk_live_your_paystack_public_key PAYSTACK_WEBHOOK_SECRET=your_webhook_secret_from_paystack FRONTEND_CUSTOMER_URL=https://yourdomain.com FRONTEND_POS_URL=https://pos.yourdomain.com FRONTEND_KDS_URL=https://kds.yourdomain.com FRONTEND_ADMIN_URL=https://admin.yourdomain.com RESTAURANT_NAME=De Fusion Flame Kitchen RESTAURANT_ADDRESS=Kasoa New Market Road Opposite Saviour Diagnostic Clinic RESTAURANT_PHONE=0551796725,0545010103 # ============================================ # CUSTOMER APP (yourdomain.com) # ============================================ NODE_ENV=production PORT=3000 NEXT_PUBLIC_API_URL=https://api.yourdomain.com/api NEXT_PUBLIC_WS_URL=https://api.yourdomain.com NEXT_PUBLIC_PAYSTACK_PUBLIC_KEY=pk_live_your_paystack_public_key # ============================================ # POS APP (pos.yourdomain.com) # ============================================ NODE_ENV=production PORT=3001 NEXT_PUBLIC_API_URL=https://api.yourdomain.com/api NEXT_PUBLIC_WS_URL=https://api.yourdomain.com # ============================================ # KDS APP (kds.yourdomain.com) # ============================================ NODE_ENV=production PORT=3002 NEXT_PUBLIC_API_URL=https://api.yourdomain.com/api NEXT_PUBLIC_WS_URL=https://api.yourdomain.com # ============================================ # ADMIN APP (admin.yourdomain.com) # ============================================ NODE_ENV=production PORT=3003 NEXT_PUBLIC_API_URL=https://api.yourdomain.com/api NEXT_PUBLIC_WS_URL=https://api.yourdomain.com # ============================================ # IMPORTANT NOTES: # ============================================ # 1. Replace 'yourdomain.com' with your actual domain # 2. Replace database credentials with your actual cPanel database credentials # 3. Replace Paystack keys with your LIVE keys from Paystack dashboard # 4. Generate a strong JWT_SECRET (32+ characters): openssl rand -base64 32 # 5. Set these in cPanel Node.js Selector → Environment Variables # 6. Restart applications after setting environment variables