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
During installation allow to prefill DB form from environment variables #13676
Conversation
As mentioned in the issue developed https://github.com/matomo-org/plugin-EnvironmentVariables but haven't tested it. If someone can confirm this works, we can publish it on the marketplace. |
I can test it, but not immediately, what do I need to do to test it? install matomo from this specific branch? Could you provide me a documentation on how to get the equivalent of the matomo.zip (release) from this branch please? |
Easiest be to download the regular matomo.zip, install, and then replace the content of the file |
thanks! I'll try that as soon as I have a minute and let you know how it works |
Sorry for the long delay on this one @tsteur |
Thanks for the fast reply! And sorry about that, I missed that comment today… |
Yes I know :) It will be a plugin on the Matomo Marketplace as we don't want to enable it by default. So you would basically download it from eg |
thanks! I'll add that to the script that creates my "image" from the matomo releases |
refs #10914
@mattab as discussed pre-filling DB values from environment optionally. Supported are:
and as fallback if that is not defined (we could also remove that fallback)
The structure being taken from the global ini as in
MATOMO_$CATEGORY_$SETTINGNAME
.I'm not going to implement that it overrides the config and that Matomo could be basically even used without config etc. Some settings will need to be writable I suppose and won't be possible to be set through environment variables. I wouldn't want it in core actually, and to overwrite / configure any environment setting I suggest this will be implemented in a separate plugin which can be put on the marketplace. For performance etc I wouldn't want to check environment variables for heaps of settings etc.