Closed umesh-timalsina closed 3 years ago
I believe this is good approach. Otherwise you might ignore a badly formed environment variable and even if we would log that the value was ignored, you might not understand why the server behaves differently (as many only check the direct logs related to a crash...).
I wanted to create a public deployment of
webgme
where thejwt
token keys are being setup from the environment variables.I named the environment variables
WEBGME_PUBLIC_KEY
andWEBGME_PRIVATE_KEY
, which is great, except its adding the keys to config object and hence validation of configuration fails. I see that this is an intended behaviour, as done in #145. However, it might be nice to check if the parsed/resolved configuration from the environment variable actually yields a valid configuration item.