Skip to content

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.

License

Notifications You must be signed in to change notification settings

svtslv/jstunnel

Repository files navigation

JsTunnel - secure tunnels to localhost

NPM Version Package License

Table of Contents

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

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published