From 908a00b38ce12a6d177742339bcaa26f61d56398 Mon Sep 17 00:00:00 2001 From: DeNNiiInc Date: Sat, 27 Dec 2025 15:49:05 +1100 Subject: [PATCH] feat: add nginx proxy setup script --- deploy.sh | 4 ++++ setup-proxy.sh | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 setup-proxy.sh 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 <