mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-24 23:12:50 +08:00

* hacked together load balancing reroutes in fileconfig * some renaming and refactoring * more renames * hacked away the old config json * test for issue 213 * renamed key * dont share ports * oops * updated docs * mvoed docs around * port being used
59 lines
1.8 KiB
JSON
Executable File
59 lines
1.8 KiB
JSON
Executable File
{
|
|
"ReRoutes": [
|
|
{
|
|
"DownstreamPathTemplate": "41879/",
|
|
"UpstreamPathTemplate": "/",
|
|
"UpstreamHttpMethod": "Get",
|
|
"AuthenticationOptions": {
|
|
"Provider": null,
|
|
"ProviderRootUrl": null,
|
|
"ApiName": null,
|
|
"RequireHttps": false,
|
|
"AllowedScopes": [],
|
|
"ApiSecret": null
|
|
},
|
|
"AddHeadersToRequest": {},
|
|
"AddClaimsToRequest": {},
|
|
"RouteClaimsRequirement": {},
|
|
"AddQueriesToRequest": {},
|
|
"RequestIdKey": null,
|
|
"FileCacheOptions": {
|
|
"TtlSeconds": 0
|
|
},
|
|
"ReRouteIsCaseSensitive": false,
|
|
"ServiceName": null,
|
|
"DownstreamScheme": "http",
|
|
"DownstreamHost": "localhost",
|
|
"DownstreamPort": 41879,
|
|
"QoSOptions": {
|
|
"ExceptionsAllowedBeforeBreaking": 0,
|
|
"DurationOfBreak": 0,
|
|
"TimeoutValue": 0
|
|
},
|
|
"LoadBalancer": null,
|
|
"RateLimitOptions": {
|
|
"ClientWhitelist": [],
|
|
"EnableRateLimiting": false,
|
|
"Period": null,
|
|
"PeriodTimespan": 0,
|
|
"Limit": 0
|
|
}
|
|
}
|
|
],
|
|
"GlobalConfiguration": {
|
|
"RequestIdKey": null,
|
|
"ServiceDiscoveryProvider": {
|
|
"Provider": null,
|
|
"Host": null,
|
|
"Port": 0
|
|
},
|
|
"AdministrationPath": null,
|
|
"RateLimitOptions": {
|
|
"ClientIdHeader": "ClientId",
|
|
"QuotaExceededMessage": null,
|
|
"RateLimitCounterPrefix": "ocelot",
|
|
"DisableRateLimitHeaders": false,
|
|
"HttpStatusCode": 429
|
|
}
|
|
}
|
|
} |