mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-20 04:18:16 +08:00
#645 added a sample project using the administration api, tested locally and works as expected (#660)
This commit is contained in:
18
samples/AdministrationApi/ocelot.json
Normal file
18
samples/AdministrationApi/ocelot.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"ReRoutes": [
|
||||
{
|
||||
"DownstreamPathTemplate": "/service/stats/collected",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "localhost",
|
||||
"Port": 5100
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/api/stats/collected"
|
||||
}
|
||||
],
|
||||
"GlobalConfiguration": {
|
||||
"BaseUrl": "http://localhost:5000"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user