DEV Community

frustigor
frustigor

Posted on

2 1

Easy-GateWay: The fastest way to setup a Proxy Server

You may run a private service on your remote server, however, one day, you want to debug something, and do not want to change your project code. You can use Easy-GateWay to setup a proxy server to serve your private service as public.

Environment required: NodeJS 10.x

npm i -g easy-gateway

Now, for example, you want to serve your private http://127.0.0.1:6000, you can do like this:

egw start --port=8080 --target=http://localhost:6000 --token=asdfjw982ng98f902jofa

Now, some other people can visit your service by using http://yourip:8080?token=asdfjw982ng98f902jofa. Isn't is easy?

To stop it, you should run in current directory:

egw stop

If you want to learn more about Easy-GateWay, visit git repo.

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more