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

Fabio confi help with multiple proto #490

Closed
satishviswanathan opened this issue May 10, 2018 · 10 comments
Closed

Fabio confi help with multiple proto #490

satishviswanathan opened this issue May 10, 2018 · 10 comments

Comments

@satishviswanathan
Copy link

satishviswanathan commented May 10, 2018

My consul services is having multiple services with different protocols, some use http and other tcp. Now I'm trying to populate the fabio routing table with all these services with the following command.

The issue is my http services are not available since fabio is being exposed as a TCP proxy at port 2302.

fabio-1.5.8-go1.10-windows_amd64.exe -registry.consul.addr 10.XXX.XXX.XX:8500 -proxy.addr :2302;proto=tcp, :/;proto=http

@satishviswanathan
Copy link
Author

@magiconair Do you think it is possible to expose my TCP services at 2303 and HTTP services at 9999.

Fabio Routing table
fabio-multiple-proto

@shibukraj
Copy link

Is this can be done in Fabio? Or do we need to configure separate fabio instances per Protocol?

@aaronhurt
Copy link
Member

If you need a TCP listener and also an HTTP listener to enable the HTTP features you will need to define multiple listeners on different ports and/or different IPs.

Example from our lab configuration:

proxy.addr = 172.27.18.68:80;proto=http;rt=60s;wt=30s,\
             172.27.18.68:443;proto=https;rt=60s;wt=30s;cs=all;tlsmin=10, \
             172.27.18.68:8443;proto=tcp+sni

This binds to 172.27.18.68 on three different ports 80, 443, and 8443 using three different protocols for each listener.

@shibukraj
Copy link

Thanks that worked perfectly. What I have seen is we need to define TCP first and then HTTP.
Thanks again.

@zpeterg
Copy link

zpeterg commented Jul 14, 2018

Thanks, @leprechau , I looked for some time for how to chain protocols. The documentation seems to omit this.

@aaronhurt
Copy link
Member

Np, I'll see about adding a more complete example to the documentation.

@jarrettj
Copy link

Agreed, adding a couple of examples would be awesome! :)

@aaronhurt
Copy link
Member

Sorry, I forgot about this ... I'll add to the docs today.

aaronhurt added a commit to myENA/fabio that referenced this issue Nov 9, 2018
@aaronhurt
Copy link
Member

Better late than never I guess. Sorry for the delay.

aaronhurt added a commit that referenced this issue Nov 9, 2018
@jarrettj
Copy link

No worries :)

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

No branches or pull requests

5 participants