Commit 55ba7d64 authored by Geoff Simmons's avatar Geoff Simmons

Minor bugfix in vcl_recv for self-sharding.

Allows custom vcl_recv to be executed when requests are forwarded
to the primary.
parent 51294ab9
......@@ -133,7 +133,7 @@ sub vcl_recv {
set req.backend_hint = vk8s_cluster_primary.get();
return (pipe);
}
{{ if $rule.Conditions }}}
{{ if $rule.Conditions }}} else
{{ end -}}
{{ end -}}
{{ end -}}
......
......@@ -67,7 +67,7 @@ sub vcl_recv {
set req.backend_hint = vk8s_cluster_primary.get();
return (pipe);
}
}
} else
if (remote.ip ~ vk8s_cluster_acl) {
if (req.http.Host == "vk8s_cluster") {
if (req.url == "/vk8s_cluster_health") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment