0.1.2 • Published 4 years ago
jstunnel v0.1.2
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 jstunnelRunning 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 3000example: tcp tunnel
npx jstunnel -p 5432 -t tcpexample: print help
npx jstunnel --helpCustom subdomain
example:
npx jstunnel -p 3000 -s subdomainServing local directory
example:
npx jstunnel --directory ./Password protection
example: basic auth
npx jstunnel -p 3000 --auth username:passwordexample: include path
npx jstunnel -p 3000 --auth user:pass:+/privateexample: exclude path
npx jstunnel -p 3000 --auth user:pass:-/publicWeb interface
example: enable
npx jstunnel -p 3000 --webexample: disable
npx jstunnel -p 3000 --web falseHTTP logs
example: raw
npx jstunnel -p 3000 --log rawexample: compact
npx jstunnel -p 3000 --log compactexample: combined
npx jstunnel -p 3000 --log combinedexample: body limiter
npx jstunnel -p 3000 --log [type]:200example: disable
npx jstunnel -p 3000 --log falseSponsored by
Your stars on GitHub
License
MIT