Closed gldhnchn closed 5 years ago
Are you setting https
address ONLYOFFICE?
In the settings of onlyoffice nextcloud app I put https://onlyoffice.mydomain.net at "service address for document server" (Entering http: there is not allowed by the app).
Very strange Access is allowed at https://github.com/ONLYOFFICE/onlyoffice-nextcloud/blob/v2.1.2/controller/editorcontroller.php#L385 And your error message:
Security Policy: Die Einstellungen der Seite haben das Laden einer Ressource auf http://
I solved this. Was a similar issue to this one and solved it with this. Here is my new onlyoffice nginx config:
map $http_host $this_host {
"" $host;
default $http_host;
}
map $http_x_forwarded_proto $the_scheme {
default $http_x_forwarded_proto;
"" $scheme;
}
map $http_x_forwarded_host $the_host {
default $http_x_forwarded_host;
"" $this_host;
}
map $http_upgrade $proxy_connection {
default upgrade;
"" close;
}
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $proxy_connection;
proxy_set_header X-Forwarded-Host $the_host;
proxy_set_header X-Forwarded-Proto $the_scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
server {
listen localhost:81;
server_name onlyoffice.mydomain.com;
server_tokens off;
location / {
proxy_pass http://localhost:8080;
proxy_http_version 1.1;
}
}
I was also able to solve this by forcing https://
on my CDN.
Thanks for the help!
Hi, I installed Onlyoffice with docker on my Ubuntu 18.10 server alongside my Nextcloud (15.0.0.10) installation. The installation of Onlyoffice and the Onlyoffice Nextcloud app worked well. I'm getting the welcome message at https://onlyoffice.mydomain.net.
When I'm trying to open a document with Onlyoffice in Nextcloud I'm getting this error message from the developer tools in firefox (sorry for german):
I''m running nginx as webserver.
I tried to put something like
add_header Content-Security-Policy "frame-src 'self' https://onlyoffice.mydomain.net;";
somewhere, but I didn't make it work yet. What can I do?Edit: I started Onlyoffice with
docker run --name=ONLYOFFICEDOCKER -i -t -d -p 8080:80 --restart=always -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data -v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice -v /app/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice -v /app/onlyoffice/DocumentServer/db:/var/lib/postgresql onlyoffice/documentserver
This is my gateway nginx config:
This is my nextcloud nginx config:
My Onlyoffice nginx config: