-
Notifications
You must be signed in to change notification settings - Fork 1
Possibility to use multiple port rules #31
Comments
Looks like I have an opportunity to put some time in on this. Let's brainstorm. Possible scenarios:
The first two cases are straightforward, and we already handle scenarios where upstream blocks have multiple containers. These cases rely on a single port being opened: 80, Case 3 could mean several things: a single container could have multiple ports open that all accept traffic from a single port (ie. 80 external upstreams to 10.0.0.0:81, :82, and :83) OR it could be that traffic from multiple externals forwards to multiple internals (ie. :81 external -> :81 internal, :82 external -> :82 internal). This requires an upstream block and a location + Case 4 is the most complex as it combines all possibilities up to this point. I think we could implement something that is familiar to Docker users - let each container specify its external and internal ports, like Daydream:
... might produce this: (pseudo-config)
|
Okay but you forgot one use-case:
Outbound-inbound port matching is okay but the real thing is that i want to map subdomains to specific ports cause, as in my company, sometimes not widely used ports are blocked, in the case above it would be 1771 |
@Munsio do we also want to support custom locations? For example:
|
That what you like to achieve is already possible with the vhosts location files cause the URL specification says it that port have to be after TLD so if you catch the route /web in your vhost file it is already possible to create an proxy_redirect rule in there directing to port 3306 etc. etc. |
Sometimes you have an application with multiple ports running and want an subdomain for each - something like:
frontend: 80
admin: 8081
monitoring: 7117
We need an draft to made this possible - so in all we need an label or something else which supports domain+port matching.
The text was updated successfully, but these errors were encountered: