Exclusive Metin2 game shield on FreeBSD: Automatic siege mode, VIP list, and whitelist from your dashboard. See how it works
Create a server

Guide

How to Set Up a Reverse Proxy with Nginx

A reverse proxy terminates HTTPS on 443 and forwards to your app on localhost:3000 (or another port). Nginx is the usual choice.

Steps

  1. Install Nginx:

    sudo apt update
    sudo apt install -y nginx
  2. Create a site (example to 127.0.0.1:3000) under /etc/nginx/sites-available/app and enable it.

    sudo ln -s /etc/nginx/sites-available/app /etc/nginx/sites-enabled/
    sudo nginx -t
    sudo systemctl reload nginx
  3. In the server block use proxy_pass http://127.0.0.1:3000; plus Host and X-Forwarded-For headers.

  4. Add SSL with Certbot once DNS points at the VPS.

Tips

  • Bind the app to 127.0.0.1 only — not a public 0.0.0.0 listener.
  • Always run nginx -t before reload.

ext step

eed a dedicated IPv4 for your domain? Get a Xernode VPS.

Related guides