Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for URL based service dispatching and load-balancing #90

Merged

Conversation

Kosta-Github
Copy link
Contributor

See the additions to the README.md file for more details about how to use it.

The additional line in the haproxy consul template file will inject the line containing path_beg:

    # HTTP service: gru
    acl acl_gru hdr(host) -i gru.service.consul
    acl acl_gru hdr(host) -i gru.service.dc2.consul
    acl acl_gru hdr(host) -i gru.my_company.com
    acl acl_gru path_beg /minion/
    use_backend backend_gru if acl_gru

to the haproxy.cfg if you add this tag haproxy_route=/minion to a service gru.

See the additions to the README.md file for more details about how to use it.

The additional line in the `haproxy` consul template file will inject the line containing `path_beg`:
```
    # HTTP service: gru
    acl acl_gru hdr(host) -i gru.service.consul
    acl acl_gru hdr(host) -i gru.service.dc2.consul
    acl acl_gru hdr(host) -i gru.my_company.com
    acl acl_gru path_beg /minion/
    use_backend backend_gru if acl_gru
```
to the `haproxy.cfg` if you add this tag `haproxy_route=/minion` to a service `gru`.
@sielaq
Copy link
Contributor

sielaq commented Aug 21, 2015

LGTM

sielaq added a commit that referenced this pull request Aug 21, 2015
add support for `URL` based service dispatching and load-balancing
@sielaq sielaq merged commit bffbdad into eBayClassifiedsGroup:master Aug 21, 2015
@Kosta-Github Kosta-Github deleted the Kosta/haproxy_route branch September 2, 2015 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants