Skip to content

Standalone Deployment

A standalone Nginx deployment consists of a single NGINX instance containing all common configurations.

The Nginx instance can be deployed as a VM or an LXC container.

Tested Environment

Role Specs Operating System Nginx Version Hostname IP Address
Reverse Proxy 1 vCPU / 512 MB RAM / 8 GB Disk Ubuntu 24.04 Server (Noble Numbat) 1.24.0 proxy.aadya.tech 10.12.20.61

Architecture

graph LR
    User -->|Request| ReverseProxy[Reverse Proxy]
    subgraph NGINX Reverse Proxy
        ReverseProxy
    end
    subgraph Backend Servers
        ReverseProxy -->|Forward Request| app1[App 1]
        ReverseProxy -->|Forward Request| app2[App 2]
    end
    app1 -->|Response| ReverseProxy
    app2 -->|Response| ReverseProxy
    ReverseProxy -->|Response| User

Setting up Nginx Reverse Proxy

  1. Login as root and ensure system is up to date before starting the setup.
    Bash
    apt update && apt dist-upgrade -y
    
  2. Since the instances will serve as only a reverse proxy, full version of Nginx is not required.
    Bash
    apt install -y nginx-light
    
  3. Continue to creating nginx configurations per requirement.