mirror of
https://github.com/tuxdotrs/trok.git
synced 2025-07-06 03:56:33 +05:30
68230c88bf75d3c4ae74e7ab941499eae7894c7c
trok
Accessing your local service should be simple
Table of Contents
Features
- TCP Tunneling
- UDP Tunneling
- HTTP Tunneling
- HTTPS Tunneling
Installation
curl -fsSL https://trok.cloud/install.sh | sh
Nix
# If you want to quickly test trok
nix run github:tuxdotrs/trok
Flake
# Add to your flake inputs
trok = {
url = "github:tuxdotrs/trok";
inputs.nixpkgs.follows = "nixpkgs";
};
# Add this in your nixos config
environment.systemPackages = [ inputs.trok.packages.${system}.default ];
Usage
trok tcp PORT_NUMBER
Selfhost
# Add to your flake inputs
trok = {
url = "github:tuxdotrs/trok";
inputs.nixpkgs.follows = "nixpkgs";
};
# Add this in your nixos config
{inputs, ...}: {
imports = [
inputs.trok.nixosModules.default
];
tux.services.trok = {
enable = true;
host = "0.0.0.0";
port = 1337;
openFirewall = true;
user = "trok";
group = "trok";
};
}
Languages
Go
43.2%
TypeScript
37.8%
Nix
13.3%
Shell
2.9%
CSS
1.4%
Other
1.4%