Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ximing/nrp

A reverse proxy implemented in Node.js, designed to assist in exposing a local server behind a NAT or firewall to the internet.
https://github.com/ximing/nrp

Last synced: 14 days ago
JSON representation

A reverse proxy implemented in Node.js, designed to assist in exposing a local server behind a NAT or firewall to the internet.

Awesome Lists containing this project

README

        

![build workflow](https://github.com/ximing/nrp/actions/workflows/build.yml/badge.svg)

# Quick Start

## Usage

### Server

Provide the following `nrps.yaml` configuration on a server capable of providing external network access:

```yaml
port: 9000
vhost_http_port: 9001
```

```bash
npm i -g @nrpjs/server
nrps -c nrps.yaml
```

### Client

Provide the following `nrpc.yaml` configuration on the client machine that needs to be proxied:

```yaml
bind_port: 9000 # NRP 服务监听的端口
bind_host: 127.0.0.1 # NRP 服务监听的端口
subdomain_host: subdomain.com # 你拥有的域名,用于子域名访问
http:
test:
subdomain: demo
local_port: 3000
```

```bash
npm i -g @nrpjs/client
nrpc -c nrpc.yaml
```