Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lh0x00/server-redirect

a tool help to setup server redirect support expose by localtunnel
https://github.com/lh0x00/server-redirect

api cli cors expose expose-server express localtunnel localtunnel-server redirect server server-redirect

Last synced: 9 days ago
JSON representation

a tool help to setup server redirect support expose by localtunnel

Awesome Lists containing this project

README

        

# server-redirect

![image](https://user-images.githubusercontent.com/9839768/54528420-83273500-49af-11e9-979c-6a292aa9704f.png)

## About

[![npm version][npm-version-image]][npm-url]
[![npm downloads][npm-downloads-image]][npm-url]
[![github issues][github-issues-image]][github-issues-url]

a tool help to setup server redirect support expose by localtunnel

## Installation

```bash
$ npm install -g server-redirect
// or yarn
$ yarn global add server-redirect
```

## Usage

```bash
redirector [options]

options:
-p, --port server port, not required and default is 3000
-u, --url redirect to url, required
-c, --cookie should use cookie, not required, default is false
-e, --expose should expose, not required, default is false
-s, --subdomain subdomain on the expose server, only use when expose is true
```

## Examples

**Default**

```bash
redirector -u
```

**Specify a port in local**

```bash
redirector -u -p 4001
```

**Use cookie**

```bash
redirector -u -c
```

**Expose server**

```bash
# Random subdomain
redirector -u -e

# Set subdomain
redirector -u -e -s do-something-great
```

**Full options**
```bash
redirector -u -p 4001 -c -e -s do-something-great
```

[npm-url]: https://npmjs.org/package/server-redirect
[npm-version-image]: https://badge.fury.io/js/server-redirect.svg
[npm-downloads-image]: https://img.shields.io/npm/dm/server-redirect.svg
[github-issues-image]: https://img.shields.io/github/issues/lamhieu-vk/server-redirect.svg
[github-issues-url]: https://github.com/lamhieu-vk/server-redirect/issues