JsTunnel - secure tunnels to localhost
Description
JsTunnel provides unique public URLs allowing you to easily share a web service on your local development machine with the world through a secure tls tunnel.
Installation
globally via npm
npm install -g jstunnel
running on-demand:
npx jstunnel [options]
Usage
Start a webserver on some local port (e.g. 3000) and use the cli to request a tunnel to your local server.
example: http tunnel
npx jstunnel -p 3000
example: tcp tunnel
npx jstunnel -p 5432 -t tcp
example: print help
npx jstunnel --help
Custom subdomain
example:
npx jstunnel -p 3000 -s subdomain
Serving local directory
example:
npx jstunnel --directory ./
Password protection
example: basic auth
npx jstunnel -p 3000 --auth username:password
example: include path
npx jstunnel -p 3000 --auth user:pass:+/private
example: exclude path
npx jstunnel -p 3000 --auth user:pass:-/public
Web interface
example: enable
npx jstunnel -p 3000 --web
example: disable
npx jstunnel -p 3000 --web false
HTTP logs
example: raw
npx jstunnel -p 3000 --log raw
example: compact
npx jstunnel -p 3000 --log compact
example: combined
npx jstunnel -p 3000 --log combined
example: body limiter
npx jstunnel -p 3000 --log [type]:200
example: disable
npx jstunnel -p 3000 --log false