-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstart-proxy.sh
More file actions
executable file
·33 lines (27 loc) · 1.11 KB
/
start-proxy.sh
File metadata and controls
executable file
·33 lines (27 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
# LMStudio Proxy Server Startup Script
# Author: Amit Rathiesh <amitrathiesh@webzler.com>
echo "╔════════════════════════════════════════════════════════════╗"
echo "║ LMStudio Proxy Server - Quick Start ║"
echo "╚════════════════════════════════════════════════════════════╝"
echo ""
# Configuration
export PROXY_PORT=${PROXY_PORT:-1235}
export LMSTUDIO_URL=${LMSTUDIO_URL:-http://localhost:1234}
export DEBUG=${DEBUG:-false}
# Check if Node.js is installed
if ! command -v node &> /dev/null; then
echo "❌ Error: Node.js is not installed"
echo "Please install Node.js from https://nodejs.org/"
exit 1
fi
# Check if dependencies are installed
if [ ! -d "node_modules" ]; then
echo "📦 Installing dependencies..."
npm install
echo ""
fi
# Start the proxy server
echo "🚀 Starting proxy server..."
echo ""
npm run proxy