@simplus/proxy-server

``` npm install -g proxy-server ```

Usage no npm install needed!

<script type="module">
  import simplusProxyServer from 'https://cdn.skypack.dev/@simplus/proxy-server';
</script>

README

Proxy server

Installation

npm install -g proxy-server

Usage

Start the server with the following command

proxy-server start

Stop the server by running

proxy-server stop

Options

  • -a, --api : The api url (default : http://127.0.0.1:8081)
  • -c, --client: the client url (default : http://127.0.0.1:8080)
  • -n, --name: the name of pm2 process (default : proxy-server)
  • -p, --port: the port used by proxy server (default : 80)

Exemple:

If i have a server running on http://myserverdomain.com, and a client running localy on port 8080

proxy-server start -a http://myserverdomain.com -c http://localhost:8080