#!/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 <