Configuring Nginx Proxy

What is Nginx Proxy for?

You can use and configure this if you want to use a custom domain for Lapsus Client.

Follow these steps:

  1. Login to your DNS and domain manager (ex. Cloudflare), go to your domain and create a DNS record type A. On name put for example client or dash. On IPv4 Address put the IP of the VPS you'll use to configure Nginx Proxy (yeah, you will need an VPS to do this). Is important to have Proxy Status off (with the gray cloud).

  1. Login to your VPS using SSH and run the following commands: apt install nginx && apt install certbot ufw allow 80 ufw allow 443 certbot certonly -d <The domain you created on step 1> Select option 1 (Nginx Webserver) and follow the steps you will see. nano /etc/nginx/sites-enabled/lapsusclient.conf

  2. server {
        listen 80;
        server_name <domain>;
        return 301 https://$server_name$request_uri;
    }
    server {
        listen 443 ssl http2;
    location /afkwspath {
      proxy_http_version 1.1;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection "upgrade";
      proxy_pass "http://yourPterodactylorIPurl:<port>/afkwspath";
    }
        
        server_name <domain>;
    ssl_certificate /etc/letsencrypt/live/<domain>/fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/live/<domain>/privkey.pem;
        ssl_session_cache shared:SSL:10m;
        ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
        ssl_ciphers  HIGH:!aNULL:!MD5;
        ssl_prefer_server_ciphers on;
    location / {
          proxy_pass http://yourPterodactylorIPurl:<port>/;
          proxy_buffering off;
          proxy_set_header X-Real-IP $remote_addr;
      }
    }
  3. Close the Linux file manager with Ctrl + X and run systemctl restart nginx, if you don't get answer from your Linux console, everything is working correctly and now you can use your custom domain! If you get an output or answer from the Linux console, check you followed all steps correctly.

Last updated