services.rathole.settings

NixOS option

TOML value

Rathole configuration, for options reference see the example on GitHub. Both server and client configurations can be specified at the same time, regardless of the selected role.

type: TOML value
Default
{ }
Example
{
  server = {
    bind_addr = "0.0.0.0:2333";
    services = {
      my_nas_ssh = {
        bind_addr = "0.0.0.0:5202";
        token = "use_a_secret_that_only_you_know";
      };
    };
  };
}
declared in: nixos/modules/services/networking/rathole.nixView source on NixOS/nixpkgs →