Port
This commit is contained in:
+5
-2
@@ -26,6 +26,11 @@ else
|
||||
echo "DOCKSHIP_LITE=false" > .env
|
||||
fi
|
||||
|
||||
# Prompt for port
|
||||
read -p "Enter the port DockShip should run on [3000]: " PORT
|
||||
PORT=${PORT:-3000}
|
||||
echo "PORT=$PORT" >> .env
|
||||
|
||||
# Prompt for ORIGIN type
|
||||
echo ""
|
||||
echo "Choose the origin IP for DockShip:"
|
||||
@@ -33,8 +38,6 @@ echo "1) Local IP (Recommended)"
|
||||
echo "2) Public IP (Unsafe)"
|
||||
read -p "Enter choice [1/2]: " ip_choice
|
||||
|
||||
PORT=3000 # Default port
|
||||
|
||||
if [[ "$ip_choice" == "1" ]]; then
|
||||
# Get local IP (first non-loopback IP)
|
||||
LOCAL_IP=$(hostname -I | awk '{print $1}')
|
||||
|
||||
Reference in New Issue
Block a user