Description
I'd like to add some language detection and code to all backends to use custom error pages by language. I thought about using a global config-backend that would be added to every backend, but many of our Ingress's already have a config-backend section, so the global one will not work when one is specified in an existing ingress.
So I though of creating a named backend for handling our custom error pages. I can do what I want by adding a config-section to define the named defaults; and then changing the template to add "from backend_defaults" to the "backend definition" in the template. It would look like this:
backend {{ $backend.ID }} from backend_defaults
Seems like it would be a fairly easy change; and could have the same approach be extended to frontends as well.