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.

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

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay