Skip to content

DeluxeOwl/localhttps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What it does?

It publishes mdns records for local services, and serves them using caddy with https.

Requirements:

Example usage:

go run github.com/DeluxeOwl/localhttps@latest -ip 192.168.0.23 -config .localhttps.yaml

How it works

This is a go binary that does the following:

  1. Goes over the config file (default .localhttps.yaml) and reads domain/address pairs (address is in the format ip:port)
    Example file
frontend.local: "127.0.0.1:5173"
backend.local: "127.0.0.1:8080"
  1. 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
}
  1. Runs caddy with the generated Caddyfile
  2. Runs dns-sd -P <domain> _http._tcp local 443 <domain> <ip>

About

Uses caddy & mac's dns-sd to publish mdns records with https.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages