jstunnel
v0.2.1
Published
Secure tunnels to localhost
Maintainers
Readme
JsTunnel - secure tunnels to localhost
Table of Contents
- Description
- Installation
- Usage
- Custom subdomain
- Serving local directory
- Password protection
- Web interface
- HTTP logs
- Server
- 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: 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 falseServer
Globally via npm
npm install -g jstunnel
jstunnel-server --helpRunning on-demand:
npx -p jstunnel jstunnel-server [options]Docker:
# svtslv/jstunnel or ghcr.io/svtslv/jstunnel
docker run \
-d \
--name jstunnel-server \
--restart unless-stopped \
-p 9000:9000 \
svtslv/jstunnel \
jstunnel-serverDocker Compose:
cat ./docker-compose.yamlKubernetes:
cat ./kubernetes.yamlExamples:
# With SSl (Single or Wildcard)
jstunnel -p 3000 -s tunnel --domain domain.com --api https://tunnel.domain.com
# Without SSL (Net connect)
jstunnel -p 3000 --domain domain.com --remoteTls false --api http://net.domain.comSponsored by
Your stars on GitHub
License
MIT
