How do you guys set internal domains?
Say i dont want to type 192.168.1.100:8096 and want a url instead, say jellyfin.servername - how would I go about that? I don’t want it exposed online via reverse proxy. I don’t need certs. No port forwarding on the router.
How do I type ‘jellyfin.servername’ into a browser and being up the jellyfin dashboard?
If you have your own DNS server you can set a hostname there like ‘jellyfin.myserver’ and have that accessible from your internal network. If you want to do so on your PC you can edit your hosts file to add a custom entry. https://www.hostinger.com/tutorials/how-to-edit-hosts-file
It’s the port that’s tripping me. How do I point jellyfin to that domain? It’s on docker on port 8096 - the hostname isn’t the problem, it’s the container.
Ah okay. You need some sort of reverse proxy.
I really like caddy. Using it with caddy-docker-proxy in docker-compose makes it quite nifty:
version: '3.7' services: whoami: image: containous/whoami networks: - caddy labels: caddy: http://whoami.mylab.home caddy.reverse_proxy: "{{upstreams 80}}" networks: caddy: external: true
Just make sure to explicitly use ‘http’ instead of ‘https’. That way it won’t try to create certificates.
Keep in mind you still need to specify the port with this method.
Yeah, how and where? In the docker compose? I have a dozem containers and is love if they were all a.server. b.server, c.server. How can I do this? Pihole DNS records don’t do anything at the port level.
Sorry I meant in your browser. Yes dns does not point to ports.
You would have to use some sort of reverse proxy that is only accessible from internal networks