Lox
July 22, 2016, 3:11am
1
I tried to add my Collabora online url using the webui, it won’t save.
I tried using occ:
# sudo -u www-data /srv/nextcloud/occ config:app:set richdocuments wopi_url --value='https://office.mydomain.com' Config value wopi_url for app richdocuments set to https://office.mydomain.com root@nextcloud:~# sudo -u www-data /srv/nextcloud/occ config:list | grep wopi "wopi_url": null
I tried to use the exact same command to save a wopi2_url and it works …
Any idea why ?
Lox
July 22, 2016, 3:54am
2
I fixed it by setting the value in mysql directly.
Having followed the Nginx guide I faced another issue where the docker collabora server returns an “X-Frame-Options” that forbids it to be displayed in NextCloud’s iframe.
So I added “add_header X-Frame-Options SAMEORIGIN;” in the “location ^~ /loleaflet {” block;
These two command worked perfectly for me:
remember, this is not your Nextcloud vhost config but the one you created for collabora
this command will set the value of the wopi_url field
sudo -u www-data php occ config:app:set richdocuments wopi_url --value=https://collaboras.domain.ext
This will functional equivelant of pressing the “save” button to activate your above config
Note: Nextcloud will attempt to connect to the the wopi_url you provided above. If it fails to connect, an error will result to the screen.
sudo -u www-data php occ richdocuments:activate-config