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

Load backends from env vars #493

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

theseanything
Copy link
Contributor

As we only have a small number of backends that change infrequently, their URL configuration can be handled by environment variables. This allows us to remove a dependency from using the Mongo Database to fetch this information and allows us to using the Content Store for route information.

Router will use any environment variable with the prefix "BACKEND_URL_", where the key suffix is the backend id and the value is the URL.

@theseanything theseanything requested a review from a team October 29, 2024 09:24
As we only have a small number of backends that change infrequently,
their URL configuration can be handled by environment variables. This
allows us to remove a dependency from using the Mongo Database to fetch
this information and allows us to using the Content Store for route
information.

Router will use any environment variable with the prefix "BACKEND_URL_",
where the key suffix is the backend id and the value is the URL.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants