mirror of
https://github.com/anjoy8/Blog.Core.git
synced 2024-09-20 23:48:27 +08:00
52 lines
1.0 KiB
JSON
52 lines
1.0 KiB
JSON
{
|
|
"Routes": [
|
|
{
|
|
"UpstreamPathTemplate": "/gateway/api/{url}",
|
|
"UpstreamHttpMethod": [
|
|
"Get",
|
|
"Post",
|
|
"Put",
|
|
"Delete"
|
|
],
|
|
"LoadBalancerOptions": {
|
|
"Type": "RoundRobin"
|
|
},
|
|
"DownstreamPathTemplate": "/api/{url}",
|
|
"DownstreamScheme": "http",
|
|
"DownstreamHostAndPorts": [
|
|
{
|
|
"Host": "localhost",
|
|
"Port": 9291
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"UpstreamPathTemplate": "/gateway/is4api/{url}",
|
|
"UpstreamHttpMethod": [
|
|
"Get",
|
|
"Post",
|
|
"Put",
|
|
"Delete"
|
|
],
|
|
"LoadBalancerOptions": {
|
|
"Type": "RoundRobin"
|
|
},
|
|
"DownstreamPathTemplate": "/is4api/{url}",
|
|
"DownstreamScheme": "http",
|
|
"DownstreamHostAndPorts": [
|
|
{
|
|
"Host": "localhost",
|
|
"Port": 5004
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"GlobalConfiguration": {
|
|
"BaseUrl": "http://localhost:9000",
|
|
"ServiceDiscoveryProvider": {
|
|
"Host": "localhost",
|
|
"Port": 8500,
|
|
"Type": "Consul"
|
|
}
|
|
}
|
|
} |