1.2.0 • Published 5 years ago
@relcu/tunnel-cli v1.2.0
tunnels cli
Tunnel exposes your localhost to the world.
installation
npm install -g @relcu/tunnel-cli --registry=http://packs.sites.liUsage
connect
just use the tunnel connect command to start the tunnel.
tunnel connect --port=8000 --auth=username:password connect options:
--portlisten on this port for outside requests--authyour username and password like (username:password)--subdomainrequest a named subdomain on the tunnel server (default is random characters)--hostproxy to a localhost default: "0.0.0.0"--domaintunnels domain to use default: "mamble.io"--secureuse this flag to indicate proxy over https default: "true"
serve
The default tunnel client connects to the mamble.io server. You can, however, easily set up and run your own server.
use the tunnel serve command to start the tunnel server.
tunnel serve --config=./your/path/config.json serve options:
--configpath for your config.json file
EX: config.json
{
"port": 80,
"address": "0.0.0.0",
"ssl": {
"port": 443,
"enabled": true,
"cert": "./your/certs.crt",
"key": "./your/certs.key"
},
"domain": "example.com",
"users": {
"username": "password"
}
}To see the requests and/or manage your users
you can install npm install -g @relcu/tunnel-admin on your server.
1.2.0
5 years ago