localhttps

command module
v0.0.0-...-155c4fd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2025 License: MIT Imports: 16 Imported by: 0

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:

  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>

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL