-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Custom error html page #11313
Comments
I will mark this help wanted. I think this is a fairly simple change to allow the content-type to be set as part of the reply mapper. @qiwzhang wdyt? |
I'd agree even with the option to leave content-type not touched by envoy, if that makes sense (in our case backend sets this header). |
Hello We need such feature too. Want to show beatiful error page to customers, when something is wrong with our backends. |
@mattklein123 - I would like to work on this issue. Can you please assign this to me ? |
@mattklein123 for modifying proxied response (with non-2xx status), do you think it makes sense to have an I can see it can also be implemented in Lua (with some thinking on how to not complicate the "state management" there). |
Sorry what is the use case here? To intercept upstream responses and translate them? This seems out of scope for local reply mapping? |
@mattklein123 True, sorry that I wrongly submitted the comment here 😅. Seems like I wanted to reply on this issue: #12883. |
…#13019) Prior to this fix only text_format and json_format were supported which would result in text/plain or application/json content-type. This Introduces content_type field which supports setting content-type for body_format / body_format_override in local_reply_config. Risk Level: low Testing: Unit Testing, Manual Testing Docs Changes: Introduces new field content_type in substitution_format_string.proto that supports setting content-type for body_format / body_format_override in local_reply_config. Release Notes: Added release notes. Fixes #11313 Co-authored-by: Devesh Kandpal <[email protected]>
…envoyproxy#13019) Prior to this fix only text_format and json_format were supported which would result in text/plain or application/json content-type. This Introduces content_type field which supports setting content-type for body_format / body_format_override in local_reply_config. Risk Level: low Testing: Unit Testing, Manual Testing Docs Changes: Introduces new field content_type in substitution_format_string.proto that supports setting content-type for body_format / body_format_override in local_reply_config. Release Notes: Added release notes. Fixes envoyproxy#11313 Co-authored-by: Devesh Kandpal <[email protected]> (cherry picked from commit a8b946e)
…envoyproxy#13019) Prior to this fix only text_format and json_format were supported which would result in text/plain or application/json content-type. This Introduces content_type field which supports setting content-type for body_format / body_format_override in local_reply_config. Risk Level: low Testing: Unit Testing, Manual Testing Docs Changes: Introduces new field content_type in substitution_format_string.proto that supports setting content-type for body_format / body_format_override in local_reply_config. Release Notes: Added release notes. Fixes envoyproxy#11313 Co-authored-by: Devesh Kandpal <[email protected]> (cherry picked from commit a8b946e)
…envoyproxy#13019) Prior to this fix only text_format and json_format were supported which would result in text/plain or application/json content-type. This Introduces content_type field which supports setting content-type for body_format / body_format_override in local_reply_config. Risk Level: low Testing: Unit Testing, Manual Testing Docs Changes: Introduces new field content_type in substitution_format_string.proto that supports setting content-type for body_format / body_format_override in local_reply_config. Release Notes: Added release notes. Fixes envoyproxy#11313 Co-authored-by: Devesh Kandpal <[email protected]> (cherry picked from commit a8b946e)
…envoyproxy#13019) Prior to this fix only text_format and json_format were supported which would result in text/plain or application/json content-type. This Introduces content_type field which supports setting content-type for body_format / body_format_override in local_reply_config. Risk Level: low Testing: Unit Testing, Manual Testing Docs Changes: Introduces new field content_type in substitution_format_string.proto that supports setting content-type for body_format / body_format_override in local_reply_config. Release Notes: Added release notes. Fixes envoyproxy#11313 Co-authored-by: Devesh Kandpal <[email protected]> (cherry picked from commit a8b946e)
Hi.
Is it possible to replace 50X status replies with some custom html page + 200 OK, like nginx or haproxy do with error_page directive? (they use internal redirect for that, afaiu)
Did some search and found that #11007 is already merged, but looks like this is for local pages only and not for html?
The text was updated successfully, but these errors were encountered: