danrockcoll
danrockcoll

Reputation: 255

Can the Ocelot .NET API Gateway be configured to route by inbound port?

The scenario is that the Ocelot .NET host listens on two ports and forwards to one of two ports downstream, depending on what port the traffic arrived on at the Ocelot host.

I have looked through the Ocelot docs (https://ocelot.readthedocs.io/en/latest/features/configuration.html) and it seems that it can only route by path and method, but I am wondering if this is something that can be achieved by a combination of Ocelot and .NET (e.g. kestrel) configuration.

The actual scenario I am trying to configure for is forwarding traffic which could be either http/1.1 or http/2 to a downstream host that has to listen on a port per http protocol due to the traffic itself being unencrypted (SSL having been terminated further upstream by a load balancer).

Upvotes: 0

Views: 84

Answers (0)

Related Questions