Skip to content

Instantly share code, notes, and snippets.

@rahulsahay19
Created October 6, 2020 15:22
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/db46b5e5aa316fb93ad53be32752cb6e to your computer and use it in GitHub Desktop.
Save rahulsahay19/db46b5e5aa316fb93ad53be32752cb6e 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
},
"FileCacheOptions": {"TtlSeconds": 20 }
},
{
"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
},
"FileCacheOptions": { "TtlSeconds": 20 }
}
],
"GlobalConfiguration": {
"BaseUrl": "https://localhost:5006"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment