Configuring Nginx as a Reverse Proxy

This runbook outlines the steps to configure Nginx as a reverse proxy for an application. Prerequisites Access to the server Nginx installed Application running on a specific port Steps Install Nginx sudo apt install -y nginx Create Nginx Configuration File sudo nano /etc/nginx/sites-available/app_proxy Add the Configuration server { listen 80; server_name yourdomain.com; location / { proxy_pass http://localhost:3000; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } } Enable the Configuration sudo ln -s /etc/nginx/sites-available/app_proxy /etc/nginx/sites-enabled/ sudo nginx -t sudo systemctl restart nginx Verification Check the application at http://yourdomain....

Runbook.site

Setting Up a New Linux Server

This runbook provides the steps to set up a new Linux server. Prerequisites Access to the server Root or sudo privileges Steps Update Package Lists sudo apt update Upgrade Packages sudo apt upgrade -y Install Common Utilities sudo apt install -y curl wget git vim Set Up Firewall sudo ufw allow OpenSSH sudo ufw enable Create a New User sudo adduser newuser sudo usermod -aG sudo newuser Configure SSH Access sudo cp /root/....

Runbook.site