A tiny reverse proxy to expose apps over Tailscale as their own application/service.
As a flake:
tailproxy.url = "git+https://git.jolheiser.com/tailproxy.git";
# ...
imports = [inputs.tailproxy.nixosModules.default];
{
services.tailproxy = {
"myapp" = {
enable = true;
hostname = "myapp";
auth-key = "<one-time auth key>"; # https://login.tailscale.com/admin/settings/keys
funnel = false;
port = 1234;
};
"otherapp" = {
# ...
};
};
}