Fix Equal comparison
This commit is contained in:
parent
e4b5250f46
commit
210ddb797a
2 changed files with 3 additions and 3 deletions
|
@ -398,12 +398,12 @@ http {
|
||||||
location / {
|
location / {
|
||||||
{{ if .CustomErrors }}
|
{{ if .CustomErrors }}
|
||||||
include /etc/nginx/fastcgi_params;
|
include /etc/nginx/fastcgi_params;
|
||||||
fastcgi_param HTTP_X_Code 503;
|
fastcgi_param HTTP_X_Code 404;
|
||||||
fastcgi_param HTTP_X_Format $http_accept;
|
fastcgi_param HTTP_X_Format $http_accept;
|
||||||
fastcgi_param HTTP_X_Endpoints {{ .DefaultBackendEndpoints }};
|
fastcgi_param HTTP_X_Endpoints {{ .DefaultBackendEndpoints }};
|
||||||
fastcgi_pass unix:/var/run/go-fastcgi.sock;
|
fastcgi_pass unix:/var/run/go-fastcgi.sock;
|
||||||
{{ else }}
|
{{ else }}
|
||||||
return 503;
|
return 404;
|
||||||
{{ end }}
|
{{ end }}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@ const DeniedKeyName = "Denied"
|
||||||
|
|
||||||
// newDefaultServer return an BackendServer to be use as default server that returns 503.
|
// newDefaultServer return an BackendServer to be use as default server that returns 503.
|
||||||
func newDefaultServer() ingress.Endpoint {
|
func newDefaultServer() ingress.Endpoint {
|
||||||
return ingress.Endpoint{Address: "127.0.0.1", Port: "8181"}
|
return ingress.Endpoint{Address: "127.0.0.1", Port: "8181", Target: &api.ObjectReference{}}
|
||||||
}
|
}
|
||||||
|
|
||||||
// newUpstream creates an upstream without servers.
|
// newUpstream creates an upstream without servers.
|
||||||
|
|
Loading…
Reference in a new issue