Skip to content

named defaults to use for all backends #1158

Open
@bsteve99

Description

@bsteve99

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions