GithubHelp home page GithubHelp logo

haproxy-consul-tmpl's Introduction

haproxy-consul-tmpl

Improved template file for haproxy-consul This allows to get rid of HAPROXY_DOMAIN variable completely.

usage

The domain have to be stored in the tags of the services under the form <domain>_<tld>. If no tag is found for a service, it would be serve on every domain.

example

For example, for a docker run command it would be:

docker run --name blog -p 80 -v /data/blog/www:/var/www -e SERVICE_NAME=www -e SERVICE_TAGS=remisoft_info www

in this example the service www would be served on the domain remisoft.info. The underscore are used because consul tags cannot contain dots. If the same service is to be served on multiple domain, just separate them by a comma. For example: -e SERVICE_TAGS=remisoft_info,example_com.

haproxy-consul-tmpl's People

Contributors

auguster avatar

Watchers

 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.