It publishes mdns records for local services, and serves them using caddy with https.
dns-sd
binary (so this runs only on mac)caddy
- https://caddyserver.com/
go run github.com/DeluxeOwl/localhttps@latest -ip 192.168.0.23 -config .localhttps.yaml
This is a go binary that does the following:
- Goes over the config file (default
.localhttps.yaml
) and reads domain/address pairs (address is in the formatip:port
)
Example file
frontend.local: "127.0.0.1:5173"
backend.local: "127.0.0.1:8080"
- Creates a
Caddyfile
frontend.local {
tls internal
reverse_proxy 127.0.0.1:5173
}
backend.local {
tls internal
reverse_proxy 127.0.0.1:8080
}
- Runs
caddy
with the generatedCaddyfile
- Runs
dns-sd -P <domain> _http._tcp local 443 <domain> <ip>