docker icon indicating copy to clipboard operation
docker copied to clipboard

How to add trusted_hosts with docker on K8s

Open pengsili opened this issue 4 years ago • 3 comments

Hi support,

We have be using matomo for many years. These days, we are planning to migrate it to our cloud. On cloud, we use k8s + docker to run a matomo image whose tag is 4.2.1 All goes well, but when i first time access matomo, it shows that our domain name is not in trusted_hosts[] in config.ini.php. And need super user to manually edit it. Although i added our domain name, still showed that our domain name not in it. Just want to know if there is any way to auto add trusted_hosts[],like environment variable setting when running docker image. And why i still could not access after i added our domain name . Need restart docker container after adding? Thanks for your help

pengsili avatar Mar 24 '21 09:03 pengsili

followiing : if you found the solution please reach out

pixar634 avatar Feb 18 '22 17:02 pixar634

@pengsili do you have a PersistentVolumeClaim for your config directory?

noahsbwilliams avatar Mar 15 '22 20:03 noahsbwilliams

Maybe #210 or #295 help here.

J0WI avatar Mar 28 '23 13:03 J0WI