set-upstream-by-header is a custom plugin made at MyKaarma to set the upstream in Kong on the basis of the headers
$ luarocks install set-upstream-by-header
root