We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to combine the "dynamic_mock" and "proxy" resources. My objective is to route the requests wherever the HOST header says.
e.g.
request: method: GET path: /example dynamic_response: engine: lua script: |- require "math" return { proxy = { host = ..request.headers.host, follow_redirects = true } }
or
request: method: GET path: /example dynamic_response: engine: go_template_yaml script: | proxy: host: {{.Request.Headers.Get "Host"}} follow_redirect: true
neither of this seem to work (the response is actually 200 but empty).
Maybe I should note that hardcoding the host part doesn't seem to work either.
host
Is this a supported use case?
The text was updated successfully, but these errors were encountered:
Hi @Laski,
dynamic_responses only allow to generate a response, not a proxy.
dynamic_response
response
proxy
There's no real way to handle "dynamic proxy" for now.
Sorry, something went wrong.
No branches or pull requests
I'm trying to combine the "dynamic_mock" and "proxy" resources. My objective is to route the requests wherever the HOST header says.
e.g.
or
neither of this seem to work (the response is actually 200 but empty).
Maybe I should note that hardcoding the
host
part doesn't seem to work either.Is this a supported use case?
The text was updated successfully, but these errors were encountered: