meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
sw:nextcloud:office:onlyoffice [2020/11/26 17:25] – created niziaksw:nextcloud:office:onlyoffice [2025/07/15 19:01] (current) niziak
Line 3: Line 3:
   * NextCloud app is on https://nc.example.com   * NextCloud app is on https://nc.example.com
   * OnlyOffice app is on https://nc.example.com/documentserver/   * OnlyOffice app is on https://nc.example.com/documentserver/
 +
 +===== References =====
 +
 +  * [[https://github.com/ONLYOFFICE/DocumentServer/blob/master/CHANGELOG.md|CHANGELOG.md]]
 +  * [[https://helpcenter.onlyoffice.com/installation/docs-community-install-ubuntu.aspx|Installing ONLYOFFICE Docs Community Edition for Debian, Ubuntu, and derivatives]]
 +  * [[https://helpcenter.onlyoffice.com/installation/docs-community-proxy.aspx|Using ONLYOFFICE Docs behind the proxy]]
 +  * [[https://www.linuxbabe.com/ubuntu/integrate-nextcloud-onlyoffice|How to Integrate OnlyOffice with NextCloud on Ubuntu]]
  
 ===== NGINX config ===== ===== NGINX config =====
Line 49: Line 56:
 } }
 </file> </file>
 +
 +Based on hints from: [[https://github.com/ONLYOFFICE/document-server-proxy]]
 +
 +===== docker-compose =====
 +
 +  * [[https://github.com/ONLYOFFICE/docker-onlyoffice-nextcloud]]
 +  * [[https://hub.docker.com/r/onlyoffice/documentserver/]]
  
  
Line 55: Line 69:
   * as TCP:3077 on Docker host (rev proxied by NGINX )   * as TCP:3077 on Docker host (rev proxied by NGINX )
  
 +==== Test OnlyOffice server ====
 +Web page should be shown on link: [[https://nc.example.com/documentserver/welcome/]]
 +
 +
 +===== NextCloud =====
 +Install and enable `OnlyOffice` plugin.
 +
 +Configure it as follows:
 +<code bash>
 +### Trusted domain 
 +./occ config:system:get trusted_domains
 +
 +# Put correct indexes in commands below:
 +./occ config:system:set trusted_domains 0 --value="nc.example.com"
 +
 +# NC http port is exposed from Docker to host port 3007
 +./occ config:system:set trusted_domains 1 --value="host_ip:3007"
 +
 +### OnlyOffice config
 +# OnlyOffice server URL:
 +./occ config:system:set onlyoffice DocumentServerUrl --value="https://nc.example.com/documentserver/"
 +# How OnlyOffice can reach NC:
 +./occ config:system:set onlyoffice StorageUrl --value="http://nc.grinn-global.com/"
 +# NOTE; it is possible to put external URL like above, but NC can communicate directly inside private Docker network
 +./occ config:system:set onlyoffice DocumentServerInternalUrl --value="https://onlyoffice/"
 +
 +# And permit NC to communicate with local addresses
 +# Without this you can got error: Error when trying to connect (Host violates local access rules)
 +./occ config:system:set allow_local_remote_servers --value true --type bool
 +</code>