t('Collabora Online in Nextcloud');?>

t('Bringing Self Hosted Online Office to everybody');?>

t('Collabora Online is a powerful LibreOffice-based online office suite with collaborative editing, which supports all major document, spreadsheet and presentation file formats and works in all modern browsers.');?>

t('North-West University
Case Study');?>

elkb logo

t('Nextcloud offers collaboration solution to Evangelisch-Lutherische Kirche in Bayern');?>

t('We deployed Nextcloud with Collabora some months ago. We are very happy with the user-acceptance of the sync&share function and hope to expand on Collabora usage as part of our plans to make Nextcloud a core component of our digital-workspace initiative.');?>
- Bartel Pieterse, Fachbereichsleiter Kommunikation & Kollaboration (KIV), ELKB

t('View and edit documents directly in your Nextcloud');?>

t('Collabora Online supports editing your documents in real time with multiple other editors, showing high fidelity, WYSIWYG rendering and preserving the layout and formatting of your documents.');?>

t('Users can insert and reply to comments and invite others without a Nextcloud account for anonymous editing of files with a public link shared folder.');?>

t('Collabora Online supports dozens of document formats including DOC, DOCX, PPT, PPTX, XLS, XLSX + ODF, Import/View Visio, Publisher and many more...');?>

t('Collabora Online Development Edition (CODE) is free and under heavy development, adding features and improvements all the time, but beware that it is limited to 10 open documents only, so it is only suitable for small teams or as demo version! Enterprise users have access to the more stable, scalable Collabora Online Enterprise version through a Nextcloud support subscription.');?>

in action

t('Under your control');?>

t('Most people use online services for storing their data, communication and editing documents, often giving up control over their files in exchange for the convenience of online collaboration. With Nextcloud and Collabora Online, this is no longer a trade-off.');?>

t('Collabora Online is Open Source, self-hosted and secure!');?>

t('An Enterprise solution that works at scale');?>

t('The users had no problems with Collabora Online; installing it had only a few tickets in half a year, it was easy to provide this service ... it just works.');?>

t('-- Thomas Hildmann, TU Berlin');?>

t('Limitations');?>

t('Collabora Development Edition is offered for free, but continuously developed and not guaranteed to be stable.');?>

t('Well integrated');?>

t('Insert images directly from your Nextcloud.');?> t('Access the Nextcloud sharing sidebar.');?> t('Chat or have a call while editing.');?> t('View and reply to comments.');?>

t('Mobile and desktop');?>

t('Collabora Online is not only available in the browser but also on our mobile platforms!');?>

t('For Enterprises');?>

t('Enterprise users who need a more reliable and scalable solution with long term support, guaranteed response times and security updates can take advantage of our');?> t('optional support contract for Collabora Online.');?>

t('Collabora Online integration tutorial video');?>

t('We are able to provide a solution for Online Office for the entire Nextcloud community through our partnership with Collabora in an easy to use docker image for developers and home users. Enterprise users looking for a more reliable solution should');?> t('contact Nextcloud Sales.');?>


t('Getting started in 3 steps');?>

t('We\'ll describe how to get Collabora Online running on your server and how to integrate it into your Nextcloud using the docker image Nextcloud and Collabora built.');?>

t('Requirements');?>

t('To install it the following dependencies are required:');?>

  1. t('A host that can run a Docker container');?>
  2. t('A subdomain or a second domain that the Collabora Online server can run on');?>
  3. t('An Apache server with some enabled modules (NGINX instructions in a blog here)');?>
  4. t('A valid SSL certificate for the domain that Collabora Online should run on');?>
  5. t('A valid SSL certificate for your Nextcloud');?>

t('Note: This guide does NOT cover self-signed certificates. If you use a self-signed certificate then you\'re mostly on your own ;-)');?>

t('1. Install the Collabora Online server');?>

t('The following steps will download the Collabora Online docker, make sure to replace "cloud.nextcloud.com" with the host that your own Nextcloud runs on. Also make sure to escape all dots with double backslashes (\\), since this string will be evaluated as a regular expression (and your bash \'eats\' the first backslash.) If you want to use the docker container with more than one Nextcloud, you\'ll need to use');?> 'domain=cloud\\.nextcloud\\.com\|second\\.nextcloud\\.com' t('instead. (All hosts are separated by \|.)');?>


                docker pull collabora/code
                docker run -t -d -p 127.0.0.1:9980:9980 -e 'domain=cloud\\.nextcloud\\.com' --restart always --cap-add MKNOD collabora/code
			

t('Optionally, you can select the dictionaries you want with:');?>


                docker run -t -d -p 127.0.0.1:9980:9980 -e 'domain=cloud\\.nextcloud\\.com' -e 'dictionaries=de en es ..' --restart always --cap-add MKNOD collabora/code
            

t('This way you are not only limited to German, English, Italian, French and Spanish.');?>

t('That will be enough. Once you have done that the server will listen on "localhost:9980". Now we just need to configure the locally installed Apache reverse proxy.');?>

t('2. Install the Apache reverse proxy');?>

t('On a recent Ubuntu or Debian this should be possible using:');?>

  1. apt-get install apache2
  2. a2enmod proxy
  3. a2enmod proxy_wstunnel
  4. a2enmod proxy_http
  5. a2enmod ssl

t('Warning, if you are using Nextcloud 23 (Nextcloud HUB II), the VirtualHost configuration has changed. You can find the latest installation information on Collabora Online official documentation', ['https://sdk.collaboraonline.com/docs/installation/Proxy_settings.html#reverse-proxy-with-apache-2-webserver']);?>

t('Afterward, configure one VirtualHost properly to proxy the traffic. For security reason we recommend to use a subdomain such as office.nextcloud.com instead of running on the same domain. An example config can be found below:');?>

				
<VirtualHost *:443>
ServerName office.nextcloud.com:443

# SSL configuration, you may want to take the easy route instead and use Let's Encrypt!
SSLEngine on
SSLCertificateFile /path/to/signed_certificate
SSLCertificateChainFile /path/to/intermediate_certificate
SSLCertificateKeyFile /path/to/private/key
SSLProtocol             all -SSLv2 -SSLv3
SSLCipherSuite ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS
SSLHonorCipherOrder     on

# Encoded slashes need to be allowed
AllowEncodedSlashes NoDecode

# Container uses a unique non-signed certificate
SSLProxyEngine On
SSLProxyVerify None
SSLProxyCheckPeerCN Off
SSLProxyCheckPeerName Off

# keep the host
ProxyPreserveHost On

# static html, js, images, etc. served from loolwsd
# loleaflet is the client part of LibreOffice Online
ProxyPass           /loleaflet https://127.0.0.1:9980/loleaflet retry=0
ProxyPassReverse    /loleaflet https://127.0.0.1:9980/loleaflet

# WOPI discovery URL
ProxyPass           /hosting/discovery https://127.0.0.1:9980/hosting/discovery retry=0
ProxyPassReverse    /hosting/discovery https://127.0.0.1:9980/hosting/discovery

# Main websocket
ProxyPassMatch "/lool/(.*)/ws$" wss://127.0.0.1:9980/lool/$1/ws nocanon

# Admin Console websocket
ProxyPass   /lool/adminws wss://127.0.0.1:9980/lool/adminws

# Download as, Fullscreen presentation and Image upload operations
ProxyPass           /lool https://127.0.0.1:9980/lool
ProxyPassReverse    /lool https://127.0.0.1:9980/lool

# Endpoint with information about availability of various features
ProxyPass           /hosting/capabilities https://127.0.0.1:9980/hosting/capabilities retry=0
ProxyPassReverse    /hosting/capabilities https://127.0.0.1:9980/hosting/capabilities
</VirtualHost>
			

t('After configuring these do restart your apache using /etc/init.d/apache2 restart.');?>

t('3. Configure the app in Nextcloud');?>

  1. t('Go to the Apps section and choose "Office & text"');?>
  2. t('Install the "Collabora Online app"');?>
  3. t('Admin -> Collabora Online -> Specify the server you have setup before (e.g. "https://office.nextcloud.com")');?>

t('Congratulations, your Nextcloud has Collabora Online Office integrated!');?>


t('Updating');?>

t('Occasionally, new versions of this docker image are released with security and feature updates. We will of course let you know when that happens! This is how you upgrade to a new version:');?>

  • t('grab new docker image:
    ');?> docker pull collabora/code
  • t('List docker images:
    ');?> docker ps
    t('from the output you can glean the Container ID of your Collabora Online docker image.');?>
  • t('stop and remove the Collabora Online docker image:
    ');?> docker stop CONTAINER_ID
    docker rm CONTAINER_ID
  • t('start the new image:
    ');?> docker run -t -d -p 127.0.0.1:9980:9980 -e 'domain=cloud\\.nextcloud\\.com' --restart always --cap-add MKNOD collabora/code

t('Enjoy!');?>


t('Troubleshooting');?>

t('Some common issues:');?>

  • t('Issue: Can\'t configure the URL in the Admin panel.
    This is most likely caused by the Documents app being enabled. Disable it and you can set the URL.');?>
  • t('Issue: I get connection errors when trying to open documents
    Be sure to check the error log from docker (docker logs id-of-your-instance). If the logs note something like:
    No acceptable WOPI hosts found matching the target host [YOUR NEXTCLOUD DOMAIN] in config.
    Unauthorized WOPI host. Please try again later and report to your administrator if the issue persists.
    you might have started the docker container with the wrong URL. Be sure to triplecheck that you start it with the URL of your Nextcloud server, not the server where Collabora Online runs on.');?>
  • t('Issue: Connection is not allowed errors.
    It is possible your firewall is blocking connections. Try to start docker after you started the firewall, it makes changes to your iptables to enable Collabora Online to function.');?>
  • t('Issue: We are sorry, this is an unexpected connection error. Please try again. error.
    The Collabora Online app doesn\'t work at the moment, if you enable it only for certain groups. Remove the group filter in the App section.');?>
  • t('Issue: Collabora Online doesn\'t handle my 100 users.
    This docker image is designed for home usage. If you need a more scalable solution, consider');?> t('a support subscription for a reliable, business-ready online office experience.');?>
  • t('Issue: Collabora Online doesn\'t work with Encryption.
    Yes, this is currently unsupported.');?>

t('Find more questions and answers in the discussion thread on the forums and post a new topic in the Collabora category if you have unanswered questions!');?>

t('Let us know what you think in the forums!');?>