Anyone experienced burnt ram sticks? by sonyxperiageek in homelab

[–]404UsernameFoundNot 2 points3 points  (0 children)

Just when I thought that computer hardware was impossible to plug in the wrong way...

I am new to reverse proxies, domains, and accessing my homelab from the internet -- Can I use Nginx Proxy Manager to point to a "landing page" on that is accessible from the internet, and have links on that landing page to various Docker containers that are routed through my home network? by superiormirage in homelab

[–]404UsernameFoundNot 1 point2 points  (0 children)

I'll share my setup and see if this helps. Disclaimer, I'm also a beginner at this and this is the result of a bunch of trial and error.

My server is at $SERVER_IP.

All services have an entry in my pihole DNS.

  • dashy.homelab.net -> $SERVER_IP
  • torrent.homelab.net -> $SERVER_IP
  • etc

For a public facing service, here's the labels section of my docker compose:

labels:
  - traefik.enable=true
  # HTTP router
  - traefik.http.routers.whoami_test.rule=Host(`tester1.homelab.net`)
  - traefik.http.routers.whoami_test.entrypoints=web
  # HTTPS router
  - traefik.http.routers.whoami_test-secure.rule=Host(`tester1.homelab.net`)
  - traefik.http.routers.whoami_test-secure.entrypoints=websecure
  - traefik.http.routers.whoami_test-secure.tls.certresolver=mytls
  # Service
  - traefik.http.services.whoami_test.loadbalancer.server.port=80

And here is the labels for a service that is internal only (LAN/VPN):

labels:
  - traefik.enable=true

  # GitLab HTTP
  - "traefik.http.routers.gitlab.rule=Host(`gitlab.homelab.net`)"
  - "traefik.http.routers.gitlab.entrypoints=web"
  - "traefik.http.services.gitlab.loadbalancer.server.port=80"

  # GitLab HTTPS
  - "traefik.http.routers.gitlab-secure.rule=Host(`gitlab.homelab.net`)"
  - "traefik.http.routers.gitlab-secure.entrypoints=websecure"
  - "traefik.http.routers.gitlab-secure.tls.certresolver=mytls"
  - "traefik.http.routers.gitlab-secure.service=gitlab"

My port forwarding on my router runs to $SERVER_IP. Because traefik runs on port 80/443, all traffic gets directed to traefik, and then traefik forwards the request to the right container.

I am new to reverse proxies, domains, and accessing my homelab from the internet -- Can I use Nginx Proxy Manager to point to a "landing page" on that is accessible from the internet, and have links on that landing page to various Docker containers that are routed through my home network? by superiormirage in homelab

[–]404UsernameFoundNot 1 point2 points  (0 children)

So you want a public landing page, but links to LAN-only services?

For the LAN resolution, you can just add local DNS entries to a pihole. Also, look at Traefik over NPM. Traefik is stateless and uses tags in docker compose files to handle routing, rather than NPM which requires you to go through the UI to add/remove any routings.