Typing 192.168.1.50:8096 to open Jellyfin gets old fast. Once you run five or six services on a mini PC, you stop remembering which port belongs to which app. A cleaner setup is to type jellyfin.home.arpa and land on the right page. Two free tools do this together: Pi-hole turns the name into your server’s IP address, and Nginx Proxy Manager (NPM) sends the request to the correct app and port.
This guide builds that setup on a single Ubuntu Server mini PC running Docker. It assumes you already have Pi-hole running in Docker and know the basics of Docker Compose. I have not tested these exact steps on a fresh machine for this article, so I flag the spots where menu names or defaults may differ on your version.
How the two tools work together
It helps to see the path a request takes before you configure anything:
- You type
jellyfin.home.arpain a browser. - Your device asks Pi-hole for the IP address. Pi-hole answers with your mini PC’s IP, because you told it to in a local DNS record.
- The browser connects to that IP on port 80. Nginx Proxy Manager is listening there.
- NPM reads the name you typed, finds the matching proxy host, and forwards the request to
192.168.1.50:8096.
Every name you create points to the same IP (the mini PC). NPM is the part that tells the apps apart. This is the most common point of confusion: the DNS record does not point at the app, it points at NPM.
What you need first
- A mini PC running Docker and Docker Compose.
- Pi-hole running and used as the DNS server for your devices. If the router setup is new to you, read home network basics for a homelab.
- A fixed IP for the mini PC, either a static address or a DHCP reservation on your router. If the IP changes, every name breaks.
- At least one web app already running on a known port.
Step 1: Free ports 80 and 443 from Pi-hole
This is the conflict that trips up most people. Pi-hole’s web interface listens on port 80 by default, and NPM needs port 80 (and 443) for itself. Only one container can own a port on the host.
The simple fix is to move Pi-hole’s web interface to a different host port. In your Pi-hole compose.yaml, change the web port mapping so the host side is not 80. Keep the DNS ports as they are:
ports:
- "53:53/tcp"
- "53:53/udp"
- "8080:80/tcp"
Recreate the container:
cd /srv/docker/pihole
docker compose up -d
Pi-hole’s admin page now lives at http://192.168.1.50:8080/admin (use your own IP). If your Compose file also maps port 443, remove that line or change the host side too. DNS on port 53 is unaffected, so your network keeps working. Pi-hole v6 can also change its web port through its own settings, but remapping the host port is the easiest method to undo if something goes wrong. Another community guide on this setup uses the same approach of moving the Pi-hole web port, for example 8888:80.
Step 2: Install Nginx Proxy Manager
Create a folder and a Compose file, following the same layout used in our other guides:
sudo mkdir -p /srv/docker/npm
cd /srv/docker/npm
sudo nano compose.yaml
services:
npm:
container_name: nginx-proxy-manager
image: jc21/nginx-proxy-manager:latest
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "81:81"
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
Port 81 is the admin interface. Ports 80 and 443 handle the actual traffic. Start it:
docker compose up -d
docker compose logs -f
Give it about 30 seconds on first start, then open http://192.168.1.50:81. Older tutorials show a default login of admin@example.com with the password changeme, and they tell you to change it immediately. Newer releases may instead ask you to create the first admin account. Follow whatever the screen asks, and choose a strong password either way.
Step 3: Choose a private domain name
You need a private domain ending to use for your services. Avoid .local, because it is reserved for mDNS and can cause slow or failed lookups on some devices. A safe choice is home.arpa, which is set aside for home networks in RFC 8375. So your apps become jellyfin.home.arpa, pihole.home.arpa, and so on.
If you own a real domain, you can use a subdomain of it instead, such as home.example.com. That matters later if you want trusted HTTPS certificates (see below).
Step 4: Add local DNS records in Pi-hole
Open Pi-hole’s admin page on its new port. In Pi-hole v6 the page is under Settings > Local DNS Records. Older v5 installs call it Local DNS > DNS Records. The menu wording may vary slightly by version.
Add one record for each name:
| Domain | IP address |
|---|---|
| jellyfin.home.arpa | 192.168.1.50 |
| pihole.home.arpa | 192.168.1.50 |
| npm.home.arpa | 192.168.1.50 |
Every row uses the same IP: your mini PC. A second option is to create one A record for the server (for example server.home.arpa) and add CNAME records for each app that point to it. Then if the server’s IP ever changes, you edit one line. Either method works.
Check the result from another computer on your network:
nslookup jellyfin.home.arpa 192.168.1.50
The answer should show your mini PC’s IP.
Step 5: Create a proxy host in NPM
In NPM, go to Hosts > Proxy Hosts > Add Proxy Host and fill in the Details tab:
- Domain Names:
jellyfin.home.arpa - Scheme:
http(this is the connection from NPM to the app, not from your browser) - Forward Hostname / IP:
192.168.1.50 - Forward Port:
8096(the port your Jellyfin container uses) - Websockets Support: on (many apps need it)
- Block Common Exploits: on
Click Save, then open http://jellyfin.home.arpa in your browser. You should see the app without typing a port. Repeat the process for each service. Do the same for the Pi-hole page by forwarding pihole.home.arpa to 192.168.1.50 on port 8080.
HTTP or HTTPS on a home network?
Plain HTTP works fine for getting started. Traffic stays inside your home network, which is a different risk from a public website. If you want the padlock, you have two realistic options:
- Self-signed or custom certificate. NPM lets you upload your own. The connection is encrypted, but browsers warn you that the certificate is not trusted unless you install your own certificate authority on each device.
- A real domain with a DNS challenge. If you own a domain, NPM can request a Let’s Encrypt certificate using the DNS challenge, which does not require opening any port to the internet. The DNS challenge needs an API token from your DNS provider (Cloudflare is a common choice). Then you use a name like
jellyfin.home.example.comand point it to your internal IP in Pi-hole.
The HTTP challenge, by contrast, needs port 80 on your public IP to reach NPM. For a private homelab, the DNS challenge is the safer path.
Keep it safe
- Do not forward ports 80, 443, or 81 on your router unless you deliberately want these services public. This guide is for internal use only.
- Keep port 81 private. The admin page controls everything. Consider proxying it through NPM itself and using an access list so only your LAN can reach it.
- For remote access, use a VPN. Tailscale lets you reach your homelab from outside without opening ports.
- Back up the NPM folder. The
dataandletsencryptdirectories hold your hosts and certificates. Copy/srv/docker/npmto your backup location regularly.
Troubleshooting
| Symptom | Likely cause and fix |
|---|---|
| Name does not resolve | The device is not using Pi-hole for DNS. Check your router’s DNS setting or the device’s network settings. Restart the device or renew its lease so it picks up the change. |
| Name opens the Pi-hole page instead of your app | The DNS record points to Pi-hole’s own address or port. It should point to the NPM host’s IP, and NPM needs a matching proxy host. |
| NPM container will not start | Something else uses port 80 or 443. Run sudo ss -tulpn | grep -E ':80|:443' to see what, then move it. |
| 502 Bad Gateway | NPM cannot reach the app. Check the forward IP and port, and make sure the app container is running with docker ps. |
| 503 or odd errors with HTTPS | Try switching the scheme between http and https, toggle Force SSL, and read the logs with docker logs nginx-proxy-manager. |
| A new name does not work | Each new name needs its own Pi-hole record (or CNAME) and its own NPM proxy host. Missing either one is the usual cause. |
Frequently asked questions
Do I need to buy a domain name?
No. A private name such as home.arpa works for plain HTTP inside your network. You only need a real domain if you want browser-trusted HTTPS certificates through Let’s Encrypt.
Can I run Pi-hole and NPM on the same mini PC?
Yes. Move Pi-hole’s web interface off ports 80 and 443, as in Step 1. Pi-hole’s DNS (port 53) and NPM do not conflict.
Why not just use Traefik or Caddy?
Both are good tools. Traefik, for example, has more GitHub stars than NPM (about 65,000 versus 34,000 according to one comparison site) and configures itself from Docker labels. NPM’s advantage for beginners is the web interface: you click through forms instead of editing config files.
What happens if Pi-hole goes down?
Your names stop resolving, and so does internet DNS if Pi-hole is your only DNS server. Many people add a second DNS server on the router as a fallback, though that can let some devices bypass Pi-hole’s filtering. Pi-hole going down while you test is a good reason to schedule changes when nobody is streaming.
Wrapping up
The pattern is simple once you see it: Pi-hole maps every name to one IP, and NPM maps each name to an app. Start with a single service, confirm it works, then add the rest one by one. Add each new service to your uptime monitoring too, and keep a note of your names and ports somewhere safe.