Integrate Seafile with Collabora Online (LibreOffice Online)
Assign a domain name to this server, we use collabora-online.seafile.com here.
Obtain and install valid TLS/SSL certificates for this server, we use Let’s Encrypt.
Use Nginx to serve collabora online, config file example:
For more information about Collabora Online and how to deploy it, please refer to
NOTE: You must enable https with valid TLS/SSL certificates (we use ) to Seafile to use Collabora Online.
Add following config option to seahub_settings.py:
Click an office file in Seafile web interface, you will see the online preview rendered by LibreOffice online. Here is an example:
Understanding how theintegration work will help you debug the problem. When a user visits a file page:
- (seahub->browser) Seahub will generate a page containing an iframe and send it to the browser
- (browser->LibreOffice Online) With the iframe, the browser will try to load the file preview page from the LibreOffice Online
- (LibreOffice Online->seahub) LibreOffice Online receives the request and sends a request to Seahub to get the file content
If you have a problem, please check the Nginx log for Seahub (for step 3) and Collabora Online to see which step is wrong.