Overriding configuratin through environment variables/additional configuration files #8146
bojanmilevski
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello 👋
I would like to suggest two ideas that would benefit anyone who would like to keep track of their configuration in a git repository:
AdGuardHome.yaml/etc/adguardhome/conf.d) where each configuration will override those inAdGuardHome.yamlCurrently, regarding IaC, all we can track is
AdGuardHome.yaml, which can not be mounted asroand causes problems with ownership, because it's owned byroot.I really like what Grafana is doing with environment variables. You can take a look here, but to summarize:
The following
.envfile:...results in the following
grafana.inifile:This is great! Each time Grafana is restarted, it parses the environment variables starting with
GF_and applies them to it's configuration file.Regarding additional configuration files, I think it's pretty simple to understand: the main configuration file is read, then each additional file in a specific predefined directory, following alphabetical order - each overriding the previous one.
People have previously suggested this: #6647 and #7202.
I would be happy to implement both of my suggestions.
Cheers 👍
Beta Was this translation helpful? Give feedback.
All reactions