-
Hi! Should be possible to load the reverse proxy configuration from a environment variable instead of relying on the appsettings.json? I understand that I can override some parts by using config layering but I am trying to keep the whole config structure out in a env var. Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
sorbonad
Jun 26, 2023
Replies: 1 comment 8 replies
-
Yes, any config value can be represented as an environment variable, but you would need a lot of them. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ater browsing the code a little bit, I believe this would work:
GetJsonConfigFromEnvironmentVariables is just reading the env variable which contains a valid json config payload.
I believe this won't play nicely with the auto config hot reloads, but in my case that scenario is not going to happen since every configuration/code change requires a deployment.
What do you think?