command
module
Version:
v0.0.0-...-155c4fd
Opens a new window with list of versions in this module.
Published: Mar 27, 2025
License: MIT
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
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:
- 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"
- 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 generated Caddyfile
- Runs
dns-sd -P <domain> _http._tcp local 443 <domain> <ip>
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.