Re:Show HN: Switchboard – A mDNS based reverse proxy for per...
by larrywright on Monday June 22, 2020 @10:56AM
(#23600907)
I’m in the process of building out a smallish home lab, with most things running in containers, and one of the things I wanted was dns for my internal things that Just Worked. It seems this is still harder than it needs to be. I started looking at Consul + Traefik, but the latest version of Traefik seems to have gotten significantly more complex for simple use cases. I’ve since started looking at Caddy, which seems far more straightforward. I will look at this, however, since it might be simpler still.
[ Parent
| on HN ]
Re:Show HN: Switchboard – A mDNS based reverse proxy for per...
by joshstrange on Monday June 22, 2020 @11:30AM
(#23601285)
+1 for Caddy.
I have been using it for years now for my personal stuff (almost all containers) and it's a breeze (the https part especially). I recently [0] added SSO for all my local stuff so I just have to login once and have access to everything.
[0] https://joshstrange.com/securing-your-self-hosted-apps-with-...
Re:Show HN: Switchboard – A mDNS based reverse proxy for per...
by whytheplatypus on Monday June 22, 2020 @11:15AM
(#23601132)
It makes my morning that this might be useful to someone aside from myself. I went down a similar path trying to find something mindless to route traffic to small projects I tend to run on raspberry pi's around the house, which resulted in this being made.
Re:Show HN: Switchboard – A mDNS based reverse proxy for per...
by mholt on Monday June 22, 2020 @11:43AM
(#23601462)
You can have the best of both worlds; since this project is written in Go, it can easily be made into a Caddy module that takes care of the mDNS part, without having to overlap other functionality. Docs: https://caddyserver.com/docs/extending-caddy
Re:Show HN: Switchboard – A mDNS based reverse proxy for per...
by imhoguy on Monday June 22, 2020 @12:21PM
(#23601991)
The simplest: shared `/etc/hosts`. And container hint: you can bind mount individual files as volumes.
Re:Show HN: Switchboard – A mDNS based reverse proxy for per...
by sneak on Monday June 22, 2020 @03:50PM
(#23605449)
Also cool is that you can bind mount the same sqlite backing db file into multiple containers.
Re:Show HN: Switchboard – A mDNS based reverse proxy for per...
by nawgszy on Monday June 22, 2020 @03:59PM
(#23605604)
That seems dangerous? How can it be so? Surely multiple instances of SQLite shouldn't read the same backing file..
Re:Show HN: Switchboard – A mDNS based reverse proxy for per...
by sneak on Monday June 22, 2020 @04:20PM
(#23605960)
The whole job of sqlite is to handle the locking to keep such accesses safe.
Re:Show HN: Switchboard – A mDNS based reverse proxy for per...
by nawgszy on Tuesday June 23, 2020 @08:56PM
(#23622619)
Ok, I see. I did some reading and it looks like this to me:
* the DB is supported by a backing file
* this backing file supports multiple read threads simultaneously but writes are locked via filesystem locks
* write performance with multiple writers is therefore dangerous
* read performance is good if no one is writing and consistent even if someone is
Re:Show HN: Switchboard – A mDNS based reverse proxy for per...
by dguo on Monday June 22, 2020 @11:25AM
(#23601229)
I spent the past weekend setting up a VPS for a personal project, and Caddy worked wonderfully well. All I needed was HTTPS for a server, and a two line Caddyfile gave me that:
<domain>
reverse_proxy localhost:8000
Re:Show HN: Switchboard – A mDNS based reverse proxy for per...
by bule0bird on Monday June 22, 2020 @01:38PM
(#23603143)
I'm using dnscrypt proxy with as filtering and some local DNS config, configured with dnscrypt server running on my VPS.
It is running on pi-zero (old $5 one without wireless), a bit slow (50ms query), but works fine, especially with caching
Re:Show HN: Switchboard – A mDNS based reverse proxy for per...
by hashkb on Monday June 22, 2020 @11:05AM
(#23601024)
Caddy user here... definitely interesting to me.
Re:Show HN: Switchboard – A mDNS based reverse proxy for per...
by pibefision on Monday June 22, 2020 @12:00PM
(#23601703)
+1 for Traefik. The problem was the documentation IMO. It works great including the integration with Docker.
Re:Show HN: Switchboard – A mDNS based reverse proxy for per...
by femiagbabiaka on Monday June 22, 2020 @11:28AM
(#23601261)
BIND provides DNS that just works. :)
Re:Show HN: Switchboard – A mDNS based reverse proxy for per...
by larrywright on Monday June 22, 2020 @11:36AM
(#23601369)
Agreed, but my point is that if I spin up a new container with something in it, I want to be able to have DNS registration occur automatically so that I’m not having to go update DNS entries somewhere.
Re:Show HN: Switchboard – A mDNS based reverse proxy for per...
by drybjed on Monday June 22, 2020 @12:33PM
(#23602162)
A simple solution would be `dnsmasq` which provides DNS and DHCP, but it cannot be used on a public network. More complex setup would be ISC DHCP server that maintains a dynamic subdomain in BIND.