-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
When installing Piwik, the port is not correctly saved for trusted_hosts #9549
Comments
If you install Piwik via |
I think the description of this ticket is backwards. The problem is that if you install piwik on So from what I can see, the problem is that the installation script only adds the domain, and not the port, to the |
This can easily be reproduced using Docker:
|
Is there any new information here? |
Has anyone found a solution for this with using Docker? |
Same issue here, I have been searching everywhere and no clue. I don't want to manually change the config file and then restart the service. I want to do it from docker-compose. |
The fix to this probably has something to do with this line: matomo/tests/resources/install-matomo.php Lines 169 to 173 in 57e252f
|
quick hack: if you mount the volume like |
Almost 2 years have passed (since the last comment), the issue still persists. |
And it does still persist ;) |
I'm using Matomo inside a Docker container, indeed inside the container it listens on 80 but it's bound to 8080 on the host. Triggering the error message. Any way to disable this easily with an environment variable? Without dealing with Docker volumes & co? Thank you, |
Not working for me. I think an env variable would be better to control the trusted domain |
This will be fixed/improved with Matomo 5, which was not yet published. |
Eg when installing Piwik via
mydomain:8000
, Piwik will probably savetrusted_hosts[] = mydomain:8000
. As soon as the installation is finished, Piwik will not allow you to log in as the URL does not match. Piwik recommends to settrusted_hosts[] = mydomain
in the UI.I'm not sure what exactly the error is. Either Piwik saves
trusted_hosts[] = mydomain:8000
and requirestrusted_hosts[] = mydomain
or it is the other way around. Or the check whether a host matches doesn't correctly check for the port.The text was updated successfully, but these errors were encountered: