Home

tailroute @0c5eb68a9c34aaf31e654e5433cd618e27bf7473 - refs - log -
-
https://git.jolheiser.com/tailroute.git
Router for tailnet and funnel across tailscale
tailroute / cmd / tailproxy
..
-rw-r--r--
1.3 kB
README.md
-rw-r--r--
1.8 kB
args.gen.go
-rw-r--r--
1.1 kB
main.go
-rw-r--r--
521 B
schema.cue

tailproxy

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

Config

schema.cue contains the source of truth for configuration.

Nix Usage

As a flake:

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

Module:

{
  services.tailproxy = {
    "myapp" = {
      enable = true;
      settings = {
        hostname = "myapp";
        auth-key = "<one-time auth key>"; # https://login.tailscale.com/admin/settings/keys
        funnel = false;
        port = 1234; # The port "myapp" is running on
      };
    };
    "otherapp" = {
      # ...
    };
  };
}