Integrate Seafile with Collabora Online (LibreOffice Online)

    1. Assign a domain name to this server, we use collabora-online.seafile.com here.

    2. Obtain and install valid TLS/SSL certificates for this server, we use Let’s Encrypt.

    3. 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:

    1. (seahub->browser) Seahub will generate a page containing an iframe and send it to the browser
    2. (browser->LibreOffice Online) With the iframe, the browser will try to load the file preview page from the LibreOffice Online
    3. (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.