Coder Social home page Coder Social logo

lycis / legate Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 7 KB

Legate is a webservice redirector for Consul. It forwards any HTTP request to the designated endpoint that is identified by Consul as service discovery.

License: MIT License

Go 100.00%

legate's Introduction

Legate

Legate is a webservice forwarder that is intertwined with Consul. It forwards any HTTP requests via HTTP redirection to a service that is registered by Consul. i

Usage

Bare Metal Execution

Simply start legate with a call to its command `legate '. For example this call may be like this:

legate consulserver:8500 

Any configuration will be dervied from command line parameters unless -config is given to set a configuration file.

Run from Container

A docker container with the name lycis/legate:latest is avaibale at Docker Hub. It can be configured by using command line parameters and ran by using a command like this:

docker run -p 8080:8080 lycis/legate:latest -dc dc01 consul:8500

The host port 8080 can thereafter be used to access the service.

Configuration

Usually legate is configured by providing matching command line parameters:

-bind string
        address and port to bind to (e.g. 127.0.0.1:80)  (default ":8080")
-config string
        configuration file
-dc string
        consul datacenter (default "dc01")

File

If Legate is configured by file the given file has to be a YAML file with the follwing structure:

Example:

consul:
    address: consulserver:8500
    datacenter: dc01
bind: 0.0.0.0:8080
  • consul: This section directly refers to the configuration of the Consul API. See here
  • bind: Address and port to bind to (default: 0.0.0.0:8080)

legate's People

Contributors

lycis avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.