-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
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
caddyfile: add handle_response blocks to reverse_proxy #3707
Comments
@mholt do you have an idea of how to represent "routes" list in handle_response block?
I didn't find an other place where it is |
I think it's tricky to have But for "routes", take a look at how the caddy/caddyconfig/httpcaddyfile/directives.go Lines 268 to 278 in 24f3478
There are ways around what I said above about caddy/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go Lines 154 to 177 in 24f3478
That approach is super tedious and finnicky though, so I don't super recommend it. But it could work if |
Thanks @francislavoie, what do you think of #3712? |
Done in #4021. |
Caddyfile support for the
handle_response
option ofreverse_proxy
would be nice.See the JSON configuration here:
https://caddyserver.com/docs/json/apps/http/servers/errors/routes/handle/reverse_proxy/handle_response/
Maybe it could look something like this in the Caddyfile:
(Responses can be matched by headers or status code. Just showing a few examples here.)
Originally posted by @mholt in #3347 (comment)
The text was updated successfully, but these errors were encountered: