Home

tailproxy @main - refs - log -
-
https://git.jolheiser.com/tailproxy.git
Tailscale reverse proxy
drwxrwxrwx
112 B
nix/
-rw-r--r--
11 B
.gitignore
-rw-r--r--
1.1 kB
LICENSE
-rw-r--r--
600 B
README.md
-rw-r--r--
739 B
flags.go
-rw-r--r--
567 B
flake.lock
-rw-r--r--
515 B
flake.nix
-rw-r--r--
726 B
gen.jsonnet
-rw-r--r--
5.1 kB
go.mod
-rw-r--r--
51 B
go.mod.sri
-rw-r--r--
25 kB
go.sum
-rw-r--r--
879 B
main.go

tailproxy

A tiny reverse proxy to expose apps over Tailscale as their own application/service.

Usage

As a flake:

tailproxy.url = "git+https://git.jolheiser.com/tailproxy.git";
# ...
imports = [inputs.tailproxy.nixosModules.default];

Module:

{
  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" = {
      # ...
    };
  };
}

License

MIT