jstunnel
v0.1.2
Published
Secure tunnels to localhost
Downloads
19
Maintainers
Readme
JSTunnel - secure tunnels to localhost
Table of Contents
- Description
- Installation
- Usage
- Custom subdomain
- Serving local directory
- Password protection
- Web interface
- HTTP logs
- License
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
Sponsored by
Your stars on GitHub
License
MIT