Configuring a Reverse Proxy
Last updated
Last updated
Follow these steps:
Login to your DNS and domain manager (ex. Cloudflare), go to your domain and create a DNS record of type A. For a name put what you want your subdomain to be (ex. client
or dash
). You can also put @
for the root. On IPv4 Address put the IP of the VPS you'll use to configure the Nginx Reverse Proxy (yeah, you will need a VPS to do this).
Note for Cloudflare Users
Ensure the subdomain is gray-clouded (not proxied). This is because you will need more ports than just web ones accessible.
Login to your VPS using SSH and run the following commands:
Alternative method to request a certificate:
Select option 1 (Nginx Webserver) and follow the steps you will see.
nano /etc/nginx/sites-enabled/lapsusclient.conf
Paste the following code, replacing <domain>
with your domain and <port>
with your port (default 8000).
Close your editor and run sudo systemctl restart nginx
.
If you don't get an error, everything is working correctly and now you can use your custom domain! If you get an error from your shell, check you followed all steps correctly.