-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·42 lines (37 loc) · 1.09 KB
/
setup.sh
File metadata and controls
executable file
·42 lines (37 loc) · 1.09 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
#!/bin/bash
set -euo pipefail
# ====================================================================
#
# Exo Proxy Fortress - Setup Wizard
#
# ====================================================================
echo "🚀 Exo Proxy Fortress Setup"
echo "============================"
echo
# Check if .env already exists
if [[ -f ".env" ]]; then
echo "⚠️ Configuration file (.env) already exists!"
read -p "Do you want to recreate it? (y/n): " RECREATE
if [[ ! "$RECREATE" =~ ^[Yy]$ ]]; then
echo "Setup cancelled."
exit 0
fi
rm .env
fi
echo "📝 Running setup wizard..."
python3 setup_wizard.py
if [[ -f ".env" ]]; then
echo
echo "✅ Setup complete! Your configuration has been saved to .env"
echo
echo "🚀 To start the server with Docker, run:"
echo " docker-compose up -d"
echo
echo "🌐 Then visit: http://localhost:$(grep PROXY_PORT .env | cut -d'=' -f2 | tr -d '"')"
echo
echo "📊 To view logs: docker-compose logs -f app"
echo "🛑 To stop: docker-compose down"
else
echo "❌ Setup failed!"
exit 1
fi