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

mapping multiple ports per service #111

Open
raarts opened this issue Jan 18, 2017 · 3 comments
Open

mapping multiple ports per service #111

raarts opened this issue Jan 18, 2017 · 3 comments

Comments

@raarts
Copy link

raarts commented Jan 18, 2017

I am running influxdb which has a web interface AND an API, so I'd like to tell the proxy about the two ports. I don't know if they can combined behind one proxy port, and if not, that would require opening a different port on the proxy itself.

@vfarcic
Copy link
Owner

vfarcic commented Jan 18, 2017

You can specify multiple ports by appending an index (e.g. port.1=1234, port.2=4321). Please note that in that case servicePath needs to be indexed as well (e.g. servicePath.1=/something, servicePath.2=/else).

All that being said, you probably do not want to add both ports to the proxy. My guess is that you want to have the UI accessible (for example from a browser), and other services to be able to connect to its API. If that's the case, I'd add only UI to the proxy and make sure that influxdb and services that need to use it are attached to the same network.

Please let me know if that's what you were looking for. Please let me know if it's not and I'll write an example.

@raarts
Copy link
Author

raarts commented Jan 20, 2017

You are right and thanks for the indexing tip

@raarts raarts closed this as completed Jan 20, 2017
@Tillman-Z
Copy link

Sorry for re-opening but I am struggling with multi domain SNI routing.
My HAProxy config uses two frontends. One binds to :443 ssl and checks the req.ssl_sni to either send the calls to one or another service. The second frontend binds to :5269 (and yes, you might have guessed it) and sends the calls to my ejabberd service.
Can I accomplish this directly with DF env vars in my compose file or do I have to modify the HAProxy.cfg accordingly?

@vfarcic vfarcic reopened this Jul 21, 2018
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

3 participants