


If you have more than one vHost with Collabora, be sure to add them in the docker start command. Install the Collabora Online Server docker pull collabora/codeĭocker run -t -d -p 127.0.0.1:9980:9980 -e 'domain= cloud\\.domain\\.xx\|nc\\.domain2\\.xx' -e 'username= admin' -e 'password= Secret.Password' -restart always -cap-add MKNOD collabora/codeĪdjust domains, username and password. The subdomain is essential for running a Collabora online server. See also installation instructions for Nextcloud 15 on Ubuntu 18.04. If you have a problem, please check the Nginx log for Seahub (for step 3) and Collabora Online to see which step is wrong.This installation guide is tested with Nextcloud 11, 12 and 13 on Ubuntu 16.04. (LibreOffice Online->browser) LibreOffice Online sends the file preview page to the browser.(LibreOffice Online->seahub) LibreOffice Online receives the request and sends a request to Seahub to get the file content.(browser->LibreOffice Online) With the iframe, the browser will try to load the file preview page from the LibreOffice Online.(seahub->browser) Seahub will generate a page containing an iframe and send it to the browser.

Understanding how theintegration work will help you debug the problem. # From 6.1.0 CE version on, Seafile support viewing/editing **doc**, **ppt**, **xls** files via LibreOffice # Add this setting to view/edit **doc**, **ppt**, **xls** files OFFICE_SERVER_TYPE = 'CollaboraOffice' # Enable LibreOffice Online ENABLE_OFFICE_WEB_APP = True # Url of LibreOffice Online's discovery page # The discovery page tells Seafile how to interact with LibreOffice Online when view file online # You should change `` to your actual LibreOffice Online server address OFFICE_WEB_APP_BASE_URL = '' # Expiration of WOPI access token # WOPI access token is a string used by Seafile to determine the file's # identity and permissions when use LibreOffice Online view it online # And for security reason, this token should expire after a set time period WOPI_ACCESS_TOKEN_EXPIRATION = 30 * 60 # seconds # List of file formats that you want to view through LibreOffice Online # You can change this value according to your preferences # And of course you should make sure your LibreOffice Online supports to preview # the files with the specified extensions OFFICE_WEB_APP_FILE_EXTENSION = ( 'odp', 'ods', 'odt', 'xls', 'xlsb', 'xlsm', 'xlsx', 'ppsx', 'ppt', 'pptm', 'pptx', 'doc', 'docm', 'docx' ) # Enable edit files through LibreOffice Online ENABLE_OFFICE_WEB_APP_EDIT = True # types of files should be editable through LibreOffice Online OFFICE_WEB_APP_EDIT_FILE_EXTENSION = ( 'odp', 'ods', 'odt', 'xls', 'xlsb', 'xlsm', 'xlsx', 'ppsx', 'ppt', 'pptm', 'pptx', 'doc', 'docm', 'docx' )Ĭlick an office file in Seafile web interface, you will see the online preview rendered by LibreOffice online.
