Skip to content
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

named defaults to use for all backends #1158

Open
bsteve99 opened this issue Aug 7, 2024 · 1 comment
Open

named defaults to use for all backends #1158

bsteve99 opened this issue Aug 7, 2024 · 1 comment

Comments

@bsteve99
Copy link

bsteve99 commented Aug 7, 2024

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.

Copy link

github-actions bot commented Sep 9, 2024

This issue got stale and will be closed in 7 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants