-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Dynamic Routing Error: Using dynamic routing with services that use HTTP and HTTPS #2253
Copy link
Copy link
Open
Open
Copy link
Labels
ConsulService discovery by ConsulService discovery by ConsulRoutingOcelot feature: RoutingOcelot feature: RoutingService DiscoveryOcelot feature: Service DiscoveryOcelot feature: Service Discoveryhelp wantedNot actively being worked on. If you plan to contribute, please drop a note.Not actively being worked on. If you plan to contribute, please drop a note.medium effortLikely a few days of development effortLikely a few days of development effortproposalProposal for a new functionality in OcelotProposal for a new functionality in Ocelot
Description
Activity
Metadata
Metadata
Assignees
Labels
ConsulService discovery by ConsulService discovery by ConsulRoutingOcelot feature: RoutingOcelot feature: RoutingService DiscoveryOcelot feature: Service DiscoveryOcelot feature: Service Discoveryhelp wantedNot actively being worked on. If you plan to contribute, please drop a note.Not actively being worked on. If you plan to contribute, please drop a note.medium effortLikely a few days of development effortLikely a few days of development effortproposalProposal for a new functionality in OcelotProposal for a new functionality in Ocelot
Please I have a simple .Net 8 web api application where Ocelot version 23.2.2 is used and I have this configuration. I am also using CONSUL as service discovery.
When running in a container with docker-compose and trying to use dynamic routing I want to use internal APIs with HTTP and external APIs with HTTPS so I configure OCELOT like this:
{ "Routes": [], "DynamicRoutes": [ { "ServiceName": "openloyalti", "UseServiceDiscovery": true } ], "GlobalConfiguration": { "ServiceDiscoveryProvider": { "RequestIdKey": "OcRequestId", "Scheme": "http", "Host": "consul-server", "Port": 8500, "Type": "Consul" }, "RateLimitOptions": { "ClientWhitelist": [], "EnableRateLimiting": false, "HttpStatusCode": 429, "QuotaExceededMessage": "Too many requests, please try again later." }, "LoadBalancerOptions": { "Type": "LeastConnection" }, "HttpHandlerOptions": { "UseTracing": true }, "DownstreamScheme": "http" } }When doing so I always get this exception:
Basically I want to know how to solve my problem of using dynamic routing with services that use HTTP and other services that use HTTPS.