#!/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..." APP_NAME="advanced-raid-calculator" PORT=4001 # Create Nginx config for the app cat > /etc/nginx/sites-available/$APP_NAME <