mirror of
https://github.com/tuxdotrs/trok.git
synced 2025-07-06 20:06:34 +05:30
doc: update README.md
This commit is contained in:
10
README.md
10
README.md
@ -52,13 +52,18 @@ environment.systemPackages = [ inputs.trok.packages.${system}.default ];
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
Start a TCP tunnel:
|
||||||
```sh
|
```sh
|
||||||
trok tcp PORT_NUMBER
|
trok tcp PORT_NUMBER
|
||||||
```
|
```
|
||||||
|
Example:
|
||||||
|
```sh
|
||||||
|
trok tcp 3000
|
||||||
|
```
|
||||||
|
This will expose your local service running on port `3000` to a public endpoint via the `trok` server.
|
||||||
|
|
||||||
## Selfhost
|
## Selfhost
|
||||||
|
You can host your own `trok` server with NixOS:
|
||||||
```nix
|
```nix
|
||||||
# Add to your flake inputs
|
# Add to your flake inputs
|
||||||
trok = {
|
trok = {
|
||||||
@ -82,3 +87,4 @@ trok = {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Once deployed, your `trok` server will be ready to handle tunneling requests from clients.
|
||||||
|
Reference in New Issue
Block a user