Run multiple tunnels
Start HTTP and TCP tunnels together from one YAML configuration file.
Start web services on ports 3000 and 8080, and an SSH service on port 22. Use the target ports and domains for your services.
Create the configuration
Save as tubu.yml:
version: 1
tunnels:
- type: http
domain: my-app.tubu.dev
target: 3000
- type: http
domain: my-api.tubu.dev
target: 8080
- type: tcp
domain: my-ssh.tubu.dev
target: 22npx tubu-cli --config tubu.ymlThe CLI uses TUBU_TOKEN for all tunnels and prints a ready line for each domain.
Verify and update
curl --fail https://my-app.tubu.dev
curl --fail https://my-api.tubu.devUse the SSH guide to verify the TCP tunnel from a caller.
Restart the publisher after editing the file.