I am attempting to run the example exactly like suggested in the Readme. However, the trusted_domains security feature of ownCloud seems to prevent it from working.
Fistly, I cannot access ownCloud at all after starting. I added
environment:
- OWNCLOUD_TRUSTED_DOMAINS=localhost
to the docker-compose.yml and that helped. I was under the impression that localhost ist trusted by default.
But then, opening documents in OnlyOffice does not work. It fails with "Download Failed".
I suspect that the problem is again the trusted domains setting. I tried the download from my browser (http://localhost/apps/onlyoffice/download?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJkb3dubG9hZCIsImZpbGVJZCI6MTUsInVzZXJJZCI6ImFkbWluIn0.Xts--kEsipbC1Db_ibBx-t_Pd1GYF9ITs0RprOgtUpE) and that was successful, I got the file. Then I tried the download from within the OnlyOffice container using curl -v http://app-server:8080/apps/onlyoffice/download?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJkb3dubG9hZCIsImZpbGVJZCI6MTUsInVzZXJJZCI6ImFkbWluIn0.Xts--kEsipbC1Db_ibBx-t_Pd1GYF9ITs0RprOgtUpE. It failed with error 400 and I am getting the page containing "You are accessing the server from an untrusted domain.".
So, now I tried adding the name of the OnlyOffice container to the trusted domains like this:
I am attempting to run the example exactly like suggested in the Readme. However, the trusted_domains security feature of ownCloud seems to prevent it from working.
Fistly, I cannot access ownCloud at all after starting. I added
to the
docker-compose.yml
and that helped. I was under the impression thatlocalhost
ist trusted by default.But then, opening documents in OnlyOffice does not work. It fails with "Download Failed".
In the log, I see errors like this:
and this:
I suspect that the problem is again the trusted domains setting. I tried the download from my browser (
http://localhost/apps/onlyoffice/download?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJkb3dubG9hZCIsImZpbGVJZCI6MTUsInVzZXJJZCI6ImFkbWluIn0.Xts--kEsipbC1Db_ibBx-t_Pd1GYF9ITs0RprOgtUpE
) and that was successful, I got the file. Then I tried the download from within the OnlyOffice container usingcurl -v http://app-server:8080/apps/onlyoffice/download?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJkb3dubG9hZCIsImZpbGVJZCI6MTUsInVzZXJJZCI6ImFkbWluIn0.Xts--kEsipbC1Db_ibBx-t_Pd1GYF9ITs0RprOgtUpE
. It failed with error 400 and I am getting the page containing "You are accessing the server from an untrusted domain.".So, now I tried adding the name of the OnlyOffice container to the trusted domains like this:
Unfortunately, that made no difference, same errors.
Now I don't know how to proceed. Any help would be appreciated!