Skip to content

Instantly share code, notes, and snippets.

@rahulsahay19
Created October 5, 2020 07:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulsahay19/9975e630ceb65493d0b3894f34802ec5 to your computer and use it in GitHub Desktop.
Save rahulsahay19/9975e630ceb65493d0b3894f34802ec5 to your computer and use it in GitHub Desktop.
ocelot.json
{
"Routes": [
{
"DownstreamPathTemplate": "/api/v1/movies",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 5001
}
],
"UpstreamPathTemplate": "/movies",
"UpstreamHttpMethod": [ "Get" ],
"AuthenticationOptions": {
"AuthenticationProviderKey": "Bearer",
"AllowedScopes": []
}
},
{
"DownstreamPathTemplate": "/api/v1/series",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 5003
}
],
"UpstreamPathTemplate": "/series",
"UpstreamHttpMethod": [ "Get" ],
"AuthenticationOptions": {
"AuthenticationProviderKey": "Bearer",
"AllowedScopes": []
}
}
],
"GlobalConfiguration": {
"BaseUrl": "https://localhost:5006"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment