Deployment

Production considerations for deploying DefenSys and related services.

Desktop App

  • Administrator rights: Required on Windows for packet capture and firewall. Run as admin or configure UAC.
  • Antivirus: Some AV may flag packet capture. Add DefenSys to exclusions if needed.
  • Firewall: Allow the desktop app through Windows Firewall if the mobile app or external tools need to connect to the REST API.

Environment Variables

# Desktop app
USE_PYTHON_ML=true|false   # Force Python or JS ML
NODE_ENV=production

# Landing / Web API (if deployed)
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=...
CLERK_SECRET_KEY=...
DATABASE_URL=...           # PostgreSQL for web API
NEXT_PUBLIC_API_URL=...    # Web API base URL

Landing Page (Next.js)

  • Deploy to Vercel, Netlify, or any Node.js host
  • Configure Clerk redirect URLs for your domain
  • Set environment variables in the host

Web API

  • Requires PostgreSQL (Prisma)
  • Run npx prisma db push or migrations before first run
  • Use HTTPS in production

Network Requirements

  • Desktop REST API: default port 3000 (configurable)
  • Web API: default port 3001
  • Mobile app must reach desktop IP:port on same network (or via VPN)