LeadPilot Installation Guide (Step-by-Step)

If you want to host LeadPilot on your VPS with a custom domain and SSL, this guide will walk you through the entire setup in two parts:

  1. Installing Node.js, PM2 & LeadPilot
  2. Configuring Domain, Nginx & SSL

By the end, your app will be live on https://yourdomain.com with auto-renewing SSL. 🔐


Prerequisites

  • A VPS (Ubuntu 22 or 24 works fine).
  • Root access to your server.
  • A domain name pointing to your VPS IP.

💻 Purchase VPS & Get 15% Instant Discount: Claim Offer
🎟️ Coupon Code: Rajeevdaz15


⚡ Step 1: Install Node.js, PM2 & LeadPilot

Run the following script in your VPS terminal. This will:

  • Update system packages
  • Install required libraries
  • Install Node.js v18
  • Install PM2 process manager
  • Clone LeadPilot
  • Start the app with PM2
# Step 2: Update
apt update && apt upgrade -y

# Step 3: System Libraries
apt install -y \
  libasound2t64 libatk-bridge2.0-0t64 libatk1.0-0t64 \
  libcups2t64 libdrm2 libgbm1 libgtk-3-0t64 libnss3 \
  libx11-xcb1 libxcomposite1 libxdamage1 libxrandr2 \
  libpangocairo-1.0-0 libpangoft2-1.0-0

# Step 4: Node.js
curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
apt install -y nodejs
node -v && npm -v

# Step 5: PM2
npm install -g pm2

# Step 6: Clone LeadPilot
git clone https://github.com/rajeevdaz/leadpilot.git
cd leadpilot

# Step 7: Install Dependencies
npm install

# Step 8: SKIP - No environment variables needed!

# Step 9: Start with PM2
pm2 start server.js --name leadpilot
pm2 save
pm2 startup

⚡ Step 2: Configure Domain & SSL

Now we’ll configure Nginx as a reverse proxy and install a free SSL certificate with Let’s Encrypt.

#!/bin/bash

# === CONFIG ===
DOMAIN="yourdomain.com"            # <-- replace with your domain
EMAIL="your@email.com"             # <-- replace with real email
APP_NAME="leadpilot"
APP_DIR="/root/leadpilot"          # <-- path to Node.js project
APP_PORT=3000                      # <-- port your app listens on
APP_FILE="server.js"               # <-- Node.js entry file

# === Install dependencies ===
echo "📦 Installing Nginx & Certbot..."
apt update -y
apt install -y nginx certbot python3-certbot-nginx

# === Setup Nginx reverse proxy ===
NGINX_CONF="/etc/nginx/sites-available/$APP_NAME"
echo "⚙️ Creating Nginx config for $DOMAIN ..."
cat > $NGINX_CONF <<EOL
server {
    listen 80;
    server_name $DOMAIN;

    location / {
        proxy_pass http://localhost:$APP_PORT;
        proxy_http_version 1.1;
        proxy_set_header Upgrade \$http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host \$host;
        proxy_cache_bypass \$http_upgrade;
    }
}
EOL

ln -sf $NGINX_CONF /etc/nginx/sites-enabled/$APP_NAME
nginx -t && systemctl reload nginx

# === Issue SSL Certificate ===
echo "🔐 Requesting SSL certificate from Let's Encrypt ..."
certbot --nginx -d $DOMAIN --non-interactive --agree-tos -m $EMAIL || true

# === Setup PM2 App ===
echo "🚀 Configuring PM2..."
cd $APP_DIR
pm2 restart $APP_FILE --name $APP_NAME || pm2 start $APP_FILE --name $APP_NAME
pm2 save
pm2 startup systemd -u root --hp /root

# === Enable SSL Auto-Renew (systemd timer) ===
echo "⏳ Enabling SSL auto-renew..."
systemctl enable certbot.timer
systemctl start certbot.timer

# === Finish ===
echo "✅ Setup complete!"
echo "Your app should be live at: https://$DOMAIN"
echo "SSL auto-renew is handled by certbot.timer (runs twice daily)."

🎉 Final Result

  • Your LeadPilot app is now available at https://yourdomain.com
  • SSL certificates auto-renew automatically.
  • PM2 ensures your app stays alive even after reboot.

Keep Reading

Category AI Posted on

How to Build and Sell Google Gemini Gems: The 2026 Blueprint

The AI landscape has shifted. In 2026, it’s no longer enough to just "use" AI—you need to build with it. Google Gemini Gems have opened up a massive opportunity for creators and entrepreneurs to build custom, high-value AI agents without writing a single line of code. In this guide and video, I’m going to show you how to use Google Gemini Gems and build no-code AI apps to monetize and make money with them. We’ll …
Continue reading
Category AI Posted on

Stop Using ChatGPT Like a Beginner (Here’s a Better Way)

If your ChatGPT sidebar is filled with dozens of random, short chats, you’re not alone. Most people use ChatGPT as a one-off conversation tool — asking something, getting an answer, and starting from scratch again the next time. The problem with this approach is simple:ChatGPT forgets everything.So it keeps asking the same questions — your idea, your tone, your context — over and over again. There’s a much sma…
Continue reading