zeroframework/ApiGateways/ZeroFramework.ReverseProxy/appsettings.json
2023-12-05 17:22:48 +08:00

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"
}
}
}
}
}
}