this post was submitted on 12 Nov 2023
1 points (100.0% liked)

Homelab

371 readers
9 users here now

Rules

founded 11 months ago
MODERATORS
 

I've just purchased an intel nuc for a homelab.

I have installed ubuntu server, docker, portainer successfully.

I have containers for radarr, sonarr, lidarr, sabnzbd etc. all running on the same IP address, but different ports.

I have a free no-ip domain name (dyndns) which resolves to my main router - all working.

In my router, I have port mapping setup to get to the different services above.

I want to be able to use URLs like (either):

- http://radarr.[[domain]]

- http://[[domain]]/radarr

But I don't know how to do it with the nginx manager. I've tried to follow a couple of tutorials, but couldn't get it working properly.

I assume what I want to do is perfectly do-able, I just can't seem to crack it.

Any help?

TIA

top 2 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 10 months ago

The only ports you need forwarded on your router are 80 and 443 to the local ip address NPM is hosted at, don’t forward ports to your services from the router. Your reverse proxy forwards traffic for each subdomain to the corresponding ip and port of your services.

[–] [email protected] 1 points 10 months ago

The first is doable, but requires fiddling with DNS. I am not sure how exactly to do it with dyndns, but with cloudflare i can just add new subdomains from their interface, its very easy. If you can stomach paying for a domain, it might be the easy way to do it.

To do the second one, you want to create a new proxy host, point the root at something (cant leave it blank, setting up a webserver with a list of hyperlinks might be nice), and then click Custom Locations, and add custom locations for each service you want.