Tunnel templates
Why templates
- Run multiple tunnels at the same time.
- If you use certain subdomains/port regularly, it is easier to create them as services and reuse using simple commands.
Open the portr client config file by running the following command
This should open a file with the following contents
You can create tunnel templates under the tunnels key to quickly start them.
For example, you can start the portr tunnel using portr start portr
. You can also add a tcp connection by specifying the type of the connection.
And start multiple services by using the command portr start portr pg
.
To start all the services, use the command portr start
.
For more details, run portr --help
.