Skip to content
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

Need a way to set trusted host #9

Open
bbodenmiller opened this issue Dec 21, 2020 · 2 comments
Open

Need a way to set trusted host #9

bbodenmiller opened this issue Dec 21, 2020 · 2 comments

Comments

@bbodenmiller
Copy link

It appears Matomo trusts the first URL that it is accessed via after deployment. Need a way to instead specify trusted host. Currently this plugin does not work for trusted_hosts[] setting.

@nickstanleybsg
Copy link

It seems that since trusted_hosts[] is an array this plugin doesn't support the config. "Configuration arrays are currently not supported, for example you cannot define which Plugins[] should be loaded."

Looking at https://github.com/matomo-org/plugin-EnvironmentVariables/blob/3.x-dev/config/config.php the settings are directly loaded in to the application. (Not a PHP dev first time looking at php code).

@tsteur Is there anyway to use a environment variable naming convention that indicates that the env var is meant to be read as a array into the application settings? For example: MATOMO_GENERAL_TRUSTED_HOSTS_ARRAY=192.168.1.1,192.168.2.1?

@dpiquet
Copy link

dpiquet commented Feb 24, 2022

if anyone is still looking for a solution for this, here is a quick and dirty implementation of array support for env var: 4Labs@48789c6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants