the setting is called “trusted_domains” and i don’t think that a IP can be called a domain. If this is a wrong assumption from my side maybe the ownCloud docker container is adding some additional configuration to allow access via the own IP?
I am pretty sure that I have seen that the docker configuration overwrites the config.php values with values from the environment. It is quite possible that the docker container adds its own IP address to the trusted_domains array. However I’m not sure how it would be able to get the host IP address from inside the container.
I’ve had a quick look through some container layers:
But unfortunately I was unable to find the code in question.
You can definitely set an IP in the trusted_domains array.
that was it , i commented trusted_domains in that file and now it works , not able to log with public ip
thanks a lot
You are accessing the server from an untrusted domain.
Please contact your administrator. If you are an administrator of this instance, configure the “trusted_domains” setting in config/config.php. An example configuration is provided in config/config.sample.php or at the documentation.
I am pretty sure that if you’d delete this file your container stopped working.
Just set your environment correctly and it should work.
Be aware that changing files directly in a container might not be a permanent solution (not sure what exactly you did)…
you were right my solution did not survice image upgrade
v9LqrZophLPIE8EkkBRk","level":0,"time":"2020-04-17T08:28:53+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"starting upgrade from 10.4.0.4 to 10.4.1.3"}
If you look at the available environment variables in the owncloud base docker image you can find the variable OWNCLOUD_DOMAIN, I think that’s the one you need to set in either your docker-compose.yml or .env file.