Setting Up a Reverse Proxy for Homelab Services With a Custom Domain

A reverse proxy for homelab services lets you reach everything on your home server through one custom domain, with clean addresses like photos.yourdomain.com instead of a list of IP addresses and port numbers. It also gives you HTTPS on every service without setting up certificates one by one. This guide covers picking a proxy, pointing your domain at your network, adding services, and locking down the ones that should never face the internet.

What a Reverse Proxy for Homelab Services Does

A reverse proxy sits between the internet and your services. A visitor asks for an address, the proxy looks at the hostname, and it forwards the request to the right container or machine on your local network. Your services never talk to the internet directly, which means you open a single port on your router instead of one port per service.

That single entry point also fixes the certificate problem. Without a proxy, each service needs its own TLS setup, and most homelab services ship with none at all. With a proxy, the proxy holds the certificate and talks HTTPS to the outside world, while traffic behind it stays on your local network. One certificate renewal covers every service at once.

There is a limit worth knowing up front. A reverse proxy does not make a badly secured service safe. If a service has a weak password or a known flaw, putting it behind a proxy only hides the port number. Access control, updates, and strong passwords still matter.

Pick Your Proxy: Nginx Proxy Manager, Traefik, or Plain Nginx

Most homelabs land on one of three choices, and the right one depends on how you like to work. Nginx Proxy Manager is the easiest starting point. It runs in Docker, has a web interface for adding hosts, and requests certificates automatically. If you want to add a service in two minutes from a browser, start here.

Traefik fits a Docker-heavy setup where services come and go often. It watches your Docker daemon and creates routes from labels on your containers, so adding a service can mean adding two lines to a compose file. The trade-off is a steeper learning curve.

Plain Nginx gives you full control and nothing else. You write each server block by hand, which teaches you exactly how proxying works, but every new service means editing files and reloading the server. It suits a small, stable set of services. If you want a deeper look at the manual route, the guide on configuring Nginx as a reverse proxy for Docker containers walks through it step by step.

Point Your Custom Domain at Your Home Network

Before the proxy can do anything, your domain has to resolve to your home connection. A homelab custom domain starts with a DNS record: log in to your domain registrar, open the DNS settings, and create an A record that points your domain or subdomain at your public IP address. A wildcard record such as *.yourdomain.com saves you from creating a new record for every service later.

Home internet connections usually get a changing public IP, so set up dynamic DNS if your address is not static. Many routers have a built-in dynamic DNS client, and most registrars offer one too. Without it, your services go dark the next time your provider hands you a new address, and the failure looks like a proxy problem when it is really a DNS problem.

Test the DNS record before you touch the proxy. From outside your network, run a lookup on the subdomain and confirm it returns your current public IP. Mobile data on your phone works well for this test because it bypasses your local network entirely. Only move on once the name resolves correctly.

Install the Proxy With Docker

Run the proxy in a Docker container on your home server so you can update or replace it without touching the host system. A reverse proxy Docker container keeps the setup portable and easy to back up. The Nginx Proxy Manager setup needs three ports: 80 and 443 for web traffic, and 81 for the admin interface. Keep the admin interface off the internet. It should only be reachable from your local network or a VPN, because anyone who reaches it can reroute your services.

Give the container a named volume for its data and certificates. If the container is removed without a volume, your host list and certificates go with it. Write the compose file down in a folder with your other homelab configs so the setup is repeatable on a fresh machine.

Start the container, log in with the default credentials, and change them immediately. Default logins on homelab tools are widely known. Then check the dashboard shows the proxy listening on ports 80 and 443 before you add any hosts.

Add Your First Service Behind the Proxy

Pick a low-risk service for the first host, such as a dashboard or a media server you already run. In the proxy admin panel, create a proxy host with the subdomain you want, the internal address of the service, and its port. Turn on the option to block common exploits if your proxy offers it, and save the host. Visit the subdomain from your browser. If the service loads, the chain from DNS to router to proxy to container works end to end.

Add services one at a time and test each before moving on. When three services break at once you cannot tell which change caused it, but added one by one the culprit is always the last one you touched. For the manual Nginx path, the step-by-step Nginx reverse proxy tutorial covers the same flow with config files instead of a web interface.

Turn On HTTPS With Automatic Certificates

Once a host works over plain HTTP, request a certificate for it from the proxy panel. Nginx Proxy Manager talks to Let’s Encrypt and handles the challenge, the install, and the renewal on its own. You only need a working DNS record and port 80 reachable from the internet for the challenge to succeed. If the challenge fails, check the DNS record and the router port forward first, because those two cause most failures.

Force HTTPS on every host once its certificate is in place. A redirect from HTTP to HTTPS means nobody reaches the plain version by accident. Test the redirect from a fresh browser session to make sure you are not seeing a cached copy of the old HTTP page.

Certificates expire, so confirm renewal works before you forget about it. The proxy should renew automatically, but set a reminder to check the certificate dates after a month. The guide to installing a free Let’s Encrypt certificate on Nginx explains the renewal mechanics in detail if you ever need to debug them by hand.

Lock Down Services That Should Stay Private

Consider whether a service needs public access at all. A dashboard you only check from home gains nothing from a public subdomain. Keep those hosts local-only and reach them over your VPN when you are away. Admin panels, file managers, and backup tools should stay reachable only from your home network or a VPN, and Nginx Proxy Manager lets you add an access list to a host that requires a login before the service even loads.

For services you do expose, turn on any built-in login the service offers, even behind the proxy. Also keep the proxy itself updated, since it handles untrusted internet traffic all day. If you are weighing alternatives, the comparison of Cloudflare Tunnel versus Nginx Proxy Manager versus Traefik covers a setup that avoids opening ports on your router entirely.

Fix the Problems That Show Up Most Often

A 502 Bad Gateway error means the proxy is up but the service behind it is not answering. Check that the container is running, that the internal address and port in the proxy host match the service, and that the service listens on a network the proxy can reach. Docker containers on different networks cannot see each other, so put the proxy and its services on a shared network.

A certificate error on one host but not others usually means the DNS record for that subdomain is missing or points somewhere else. A wildcard record covers new subdomains automatically, but a typo in the subdomain still breaks the lookup. Check the record, wait for DNS to propagate, and request the certificate again.

Slow loading or missing images often point to a host header problem. Some services build their own URLs from the hostname they see, and if the proxy passes the wrong hostname the service returns links that point nowhere. Check the service logs for the address it thinks it has, and adjust the proxy host settings until the service sees the public name. Once the basics are solid, you can run several sites through one proxy instance, as shown in the guide on setting up Nginx Proxy Manager with Docker for multiple sites.

Ditulis oleh

Firdaus Safari Putra

Founder, PT FirKaizen Digital Solutions

Firdaus Safari Putra adalah founder PT FirKaizen Digital Solutions. Ia membangun dan mengoperasikan infrastruktur server di balik panduan ini, dan menulis berdasarkan apa yang benar-benar ia jalankan, uji, dan ukur — bukan teori.