in xds/local-control-panel/server/app/resource_pixiu.go [49:89]
func makeHttpFilter() *pixiupb.FilterChain {
return &pixiupb.FilterChain{
Filters: []*pixiupb.NetworkFilter{
{
Name: constant.HTTPConnectManagerFilter,
//Config: &pixiupb.Filter_Yaml{Yaml: &pixiupb.Config{
// Content: httpManagerConfigYaml,
//}},
Config: &pixiupb.NetworkFilter_Struct{
Struct: func() *structpb.Struct {
v, err := structpb2.NewStruct(map[string]interface{}{
"route_config": map[string]interface{}{
"routes": []interface{}{
map[string]interface{}{
"match": map[string]interface{}{
"prefix": "/",
},
"route": map[string]interface{}{
"cluster": "http_bin",
"cluster_not_found_response_code": 505,
},
},
},
},
"http_filters": []interface{}{
map[string]interface{}{
"name": "dgp.filter.http.httpproxy",
"config": nil,
},
},
})
if err != nil {
panic(err)
}
return v
}(),
},
},
},
}
}