diff --git a/deploy.sh b/deploy.sh index f3ac8db..b0a2a5b 100644 --- a/deploy.sh +++ b/deploy.sh @@ -25,4 +25,8 @@ else # node server.js fi +# Run the proxy setup script +chmod +x setup-proxy.sh +./setup-proxy.sh + echo "Deployment complete." diff --git a/setup-proxy.sh b/setup-proxy.sh new file mode 100644 index 0000000..46df333 --- /dev/null +++ b/setup-proxy.sh @@ -0,0 +1,46 @@ +#!/bin/bash + +# Ensure we are running as root +if [ "$EUID" -ne 0 ]; then + echo "Please run as root" + exit 1 +fi + +echo "Configuring Nginx Reverse Proxy..." + +# Create Nginx config for the app +cat > /etc/nginx/sites-available/app <