-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquick-setup.sh
More file actions
73 lines (60 loc) · 2.38 KB
/
quick-setup.sh
File metadata and controls
73 lines (60 loc) · 2.38 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/bash
#=================================================================
# GameLAN VPN Server - SUPER EASY INSTALLATION
# Just run: bash quick-setup.sh
#=================================================================
echo "🎮 GameLAN VPN Server - Quick Setup"
echo "===================================="
# Method 1: Docker (Easiest)
if command -v docker &> /dev/null; then
echo "✅ Docker detected - Using Docker installation (Recommended)"
# Install docker-compose if not exists
if ! command -v docker-compose &> /dev/null; then
echo "📦 Installing docker-compose..."
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
fi
# Clone repository
echo "📥 Downloading GameLAN VPN..."
git clone https://github.com/yosasasutsut/GameLANVPN.git
cd GameLANVPN
# Start with Docker
echo "🚀 Starting server with Docker..."
docker-compose up -d
echo ""
echo "✅ Installation Complete!"
echo "========================"
echo "🌐 Server URL: http://localhost"
echo "📊 Status: docker-compose ps"
echo "📝 Logs: docker-compose logs -f"
echo ""
# Method 2: Direct installation
else
echo "🔧 Docker not found - Using direct installation"
# Install .NET 8
echo "📦 Installing .NET 8..."
wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
chmod +x dotnet-install.sh
./dotnet-install.sh --version 8.0 --runtime aspnetcore
rm dotnet-install.sh
export PATH=$PATH:$HOME/.dotnet
# Clone and build
echo "📥 Downloading GameLAN VPN..."
git clone https://github.com/yosasasutsut/GameLANVPN.git
cd GameLANVPN/src/Server/GameLANVPN.Server
echo "🔨 Building server..."
dotnet build -c Release
# Run server
echo "🚀 Starting server..."
dotnet run --urls http://0.0.0.0:80 &
echo ""
echo "✅ Installation Complete!"
echo "========================"
echo "🌐 Server URL: http://localhost"
echo "🛑 Stop server: kill $(ps aux | grep 'GameLANVPN.Server' | grep -v grep | awk '{print $2}')"
echo ""
fi
echo "📚 API Documentation:"
echo " POST /api/auth/register - Register new user"
echo " POST /api/auth/login - User login"
echo " WS /gamehub - Game connection hub"