49 lines
1.1 KiB
JSON
49 lines
1.1 KiB
JSON
|
{
|
||
|
"Logging": {
|
||
|
"LogLevel": {
|
||
|
"Default": "Information",
|
||
|
"Microsoft.AspNetCore": "Warning"
|
||
|
}
|
||
|
},
|
||
|
"AllowedHosts": "*",
|
||
|
"ReverseProxy": {
|
||
|
"Routes": {
|
||
|
"identityServer": {
|
||
|
"ClusterId": "identityServer",
|
||
|
"Match": {
|
||
|
"Path": "api/identity/{**remainder}"
|
||
|
},
|
||
|
"Transforms": [
|
||
|
{ "PathPattern": "api/{**remainder}" }
|
||
|
]
|
||
|
},
|
||
|
"deviceCenter": {
|
||
|
"ClusterId": "deviceCenter",
|
||
|
"Match": {
|
||
|
"Path": "api/device/{**remainder}"
|
||
|
},
|
||
|
"Transforms": [
|
||
|
{ "PathPattern": "api/{**remainder}" }
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"Clusters": {
|
||
|
"identityServer": {
|
||
|
"LoadBalancingPolicy": "Random",
|
||
|
"Destinations": {
|
||
|
"identityServer.server1": {
|
||
|
"Address": "https://localhost:5001"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"deviceCenter": {
|
||
|
"LoadBalancingPolicy": "Random",
|
||
|
"Destinations": {
|
||
|
"deviceCenter.server1": {
|
||
|
"Address": "https://localhost:6001"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|