hey folks!
finally starting with my homelab and i have adguard and homer up and running! i am having a couple of issues however, and i haven’t really found much that makes sense to me yet (sorry - super new!):
i’m on ubuntu server FWIW
initially, i could only access the adguard web interface via the ip with the port number - i.e. 10.0.0.1:3000; after i started up Homer, though, i could only access it without the port. not sure this is so much a problem, but i think it may have some impact on my actual problem, which is:
i want to configure domain names for the services on my intranet, so i initially tried to use adguard to do this. my first problem arose when i couldnt type port numbers in the DNS rewrite, so i couldn’t access my homer via DNS because that IP only redirected to my adguard. due to this, i read that possibly setting up nginx proxy manager and creating a reverse proxy would be good practice so that the proxy could divvy up the domain names itself. so i spun that up in docker, but now i can’t start adguard because port 443 is taken by nginx (which i thought could solve this port conflict issue?) - any idea how i can go about this to allow both adguard to run with nginx and help solve my domain name issue with nginx?
i’m just looking for some general direction to help my understanding - definitely don’t want y’all to do homework for me haha; and apologies if these are dumb questions - genuinely just trying to skill up in linux b/c this is the first time i’ve seriously used it
Dns only handles to domain but not the port. So if you have a client that normally just checks 80 or 443, that’s what it’ll assume you want, which is a pain.
There are two paths I’d say would be reasonable. The first is adding more IP addresses to the host so you can publish the docker port to a specific access. Then you don’t need the port. You will have to specify specific addresses to listen on so services like nginx don’t just listen on all IPs on the host.
The other thing would be to change your nginx config to have multiple
server
directives that looks for specific Host headers and point each server to what you want viaupstream
directives that can have the port specified. http://nginx.org/en/docs/http/ngx_http_upstream_module.html for details.If you need more than that, let me know and I’ll see if I can paint you in the right direction.