0.1.5 • Published 3 months ago

bunnel-server v0.1.5

Weekly downloads
-
License
-
Repository
github
Last release
3 months ago

Bunnel Server

Installation

Global Installation

npm install -g bunnel-server

Local Installation

npm install bunnel-server

Usage

Command Line

# Start a tunnel server with default options
bunnel-server

# Specify ports
bunnel-server --port 4444 --proxy 5555

# Use custom SSL certificates (instead of self-signed)
bunnel-server --cert /path/to/cert.pem --key /path/to/key.pem

Programmatic Usage

import TunnelServer from 'bunnel-server';

const server = new TunnelServer({
  tunnelPort: 4444,
  proxyPort: 5555,
  // Optional TLS configuration
  tls: {
    cert: '/path/to/cert.pem',
    key: '/path/to/key.pem'
  }
});

// Start the server
server.start();

// Later, to stop the server
server.stop();

Options

  • --port, -p: Port for tunnel to listen on (default: 4444)
  • --proxy, -x: Port for proxy to listen on (default: 5555)
  • --cert: Path to SSL certificate file
  • --key: Path to SSL private key file
  • --ca: Paths to CA certificate files

Requirements

Bunnel Server requires Bun to run.

0.1.5

3 months ago

0.1.4

4 months ago

0.1.3

4 months ago

0.1.2

4 months ago

0.1.1

4 months ago

0.1.0

4 months ago