FastCGI backend support (#2982)

Co-authored-by: Pierrick Charron <pierrick@adoy.net>
This commit is contained in:
Charle Demers 2019-07-31 10:39:21 -04:00
parent 91a68ffc71
commit 72271e9313
No known key found for this signature in database
GPG key ID: 83CA2D7E90FF4EB9
22 changed files with 938 additions and 6 deletions

View file

@ -497,6 +497,9 @@ func buildProxyPass(host string, b interface{}, loc interface{}) string {
case "AJP":
proto = ""
proxyPass = "ajp_pass"
case "FCGI":
proto = ""
proxyPass = "fastcgi_pass"
}
upstreamName := "upstream_balancer"

View file

@ -874,6 +874,7 @@ func TestOpentracingPropagateContext(t *testing.T) {
&ingress.Location{BackendProtocol: "GRPC"}: "opentracing_grpc_propagate_context",
&ingress.Location{BackendProtocol: "GRPCS"}: "opentracing_grpc_propagate_context",
&ingress.Location{BackendProtocol: "AJP"}: "opentracing_propagate_context",
&ingress.Location{BackendProtocol: "FCGI"}: "opentracing_propagate_context",
"not a location": "opentracing_propagate_context",
}