Skip to content
/ ergo Public
forked from cristianoliveira/ergo

The management of multiple local services running on different ports made easy

License

Notifications You must be signed in to change notification settings

vcctr/ergo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ergo

The proxy for local microservices managment and development. The goal of ergo is to be a simple reverse proxy that follow the unix philosophy of doing only one thing.

Simple means no magic involved.

This project is under development but it is usable. Feel free to give me feedback and opening issues. Suggestions and contributions are welcome. :)

Installation

go install github.com/cristianoliveira/ergo

Make sure you have $GOPATH/bin in your path. export PATH=$PATH:$GOPATH/bin

Usage

Ergo looks for a .ergo inside the current folder. It must contain the names and url of the services following the same format as the /etc/hosts the main difference is that Ergo also consider the port specified.

Ergo runs on 127.0.0.1:2000 you have to configure it as your proxy in Network configs of your system

Let's start:

echo "ergoproxy http://localhost:3000" > .ergo && ergo

Now you are able to access: http://ergoproxy.dev. Ergo redirects anything that finish with .dev to the configured url. Simple, no magic involved.

Do you want add more services? So is simple, just add more lines in .ergo:

echo "otherservice http://localhost:5000" >> .ergo

Restart the server and access: http://otherservice.dev

License

MIT

About

The management of multiple local services running on different ports made easy

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 61.6%
  • Shell 32.3%
  • PowerShell 3.9%
  • Makefile 2.1%
  • JavaScript 0.1%