Allows you to specify Matomo config in environment variables instead of the config file.
Override any Matomo config with environment variables. To overwrite any setting simply specify an environment variable in the following format:
MATOMO_$CATEGORY_$SETTING
For example to overwrite the database username and password which is usually defined in the config/config.ini.php
like this:
[database]
username = "root"
password = "secure"
using environment variables like this:
export MATOMO_DATABASE_USERNAME=root
export MATOMO_DATABASE_PASSWORD=secure
Plugins[]
should be loaded.clear_env = no
in /etc/php7/php-fpm.f/<pool>.conf
.[PluginsInstalled]
PluginsInstalled[] = "EnvironmentVariables"
[Plugins]
Plugins[] = "EnvironmentVariables"
Another option is to use the following console commands during the deployment process:
./console config:set 'Plugins.Plugins[]="EnvironmentVariables"'
./console config:set 'PluginsInstalled.PluginsInstalled[]="EnvironmentVariables"'
View and download this plugin for a specific Matomo version:
View and download this plugin for a specific Matomo version: