Skip to content

Instantly share code, notes, and snippets.

@rahulsahay19
Created October 6, 2020 15:04
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/3f46770ac7def5159a303afcc86587a3 to your computer and use it in GitHub Desktop.
Save rahulsahay19/3f46770ac7def5159a303afcc86587a3 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": []
},
"RateLimitOptions": {
"ClientWhitelist": [],
"EnableRateLimiting": true,
"Period": "5s",
"PeriodTimespan": 1,
"Limit": 1
}
},
{
"DownstreamPathTemplate": "/api/v1/series",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 5003
}
],
"UpstreamPathTemplate": "/series",
"UpstreamHttpMethod": [ "Get" ],
"AuthenticationOptions": {
"AuthenticationProviderKey": "Bearer",
"AllowedScopes": []
},
"RateLimitOptions": {
"ClientWhitelist": [],
"EnableRateLimiting": true,
"Period": "5s",
"PeriodTimespan": 1,
"Limit": 1
}
}
],
"GlobalConfiguration": {
"BaseUrl": "https://localhost:5006"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment