Seafile Collabora Ubuntu 16.04 Apache without docker

Hi,

I’m looking for a tuto or how to install Collabora with Seafile without docker?
I’m running Seafile 6.2 directly on Ubuntu 16.04 with Apache.
All I found is seafile + Collabora with Docker.

Best,

You have to install Collabora by your self, this step has nothing todo with seafile. After you setup collabora service, then just setup seafile like with docker image.

Collabora is service/server running on his own. Seafile connecting to this service. So setup is on you (docker/manual instalation) but without docker it’s little bit harder to setup right.

Hi,

I have installed the packages like this:
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0C54D189F4BA284D
echo ‘deb https://www.collaboraoffice.com/repos/CollaboraOnline/CODE ./’ >> /etc/apt/sources.list
apt-get update && apt-get install loolwsd code-brand

So now I have an installation in /opt/collaboraoffice5.3 and /opt/lool

I have configured a virtualhost which is working under apache:

<VirtualHost *:443>
ServerAdmin xxx.com
ServerName office.xxx.com:443

DocumentRoot /var/www

SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/office.xxx.com/cert.pem
SSLCertificateChainFile /etc/letsencrypt/live/office.xxx.com/chain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/office.xxx.com/privkey.pem
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-$
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

I have added to seahub_settings.py:
OFFICE_SERVER_TYPE = ‘CollaboraOffice’
ENABLE_OFFICE_WEB_APP = True
OFFICE_WEB_APP_BASE_URL = ‘https://office.xxx.com/hosting/discovery
WOPI_ACCESS_TOKEN_EXPIRATION = 30 * 60
OFFICE_WEB_APP_FILE_EXTENSION = (‘odp’, ‘ods’, ‘odt’, ‘xls’, ‘xlsb’, ‘xlsm’, ‘xlsx’,‘ppsx’, ‘ppt’, ‘pptm’, ‘pptx’, ‘doc’, ‘docm’, ‘docx’)
ENABLE_OFFICE_WEB_APP_EDIT = True
OFFICE_WEB_APP_EDIT_FILE_EXTENSION = (‘odp’, ‘ods’, ‘odt’, ‘xls’, ‘xlsb’, ‘xlsm’, ‘xlsx’,‘ppsx’, ‘ppt’, ‘pptm’, ‘pptx’, ‘doc’, ‘docm’, ‘docx’)

It’s not working:
2017-10-14 15:32:15,063 [ERROR] seahub.wopi.utils:101 get_wopi_dict syntax error: line 1, column 49

I don’t know if the packages are installing and configuring Collabora correctly and I don’t know if the apache virtualhost is correct.

If someone know how to configure this, I will be grateful.

Best

1 Like

Ok,
It’s working now…
First modify the file /etc/loolwsd/loolwsd.xml
Modify server entry and certificate location.
Don’t work…
Collabora can’t read the certificates in letsencrypt location.
copy the certificates to /etc/loolwsd and it works.
So this solution is not suitable with letsencrypt for now since the user lool don’t have permission to open the certificates in letsencrypt folder or Collabora is not able to manage the symbolics links in letsencrypt folder.
After using Collabora it seems that MS Office documents are not edited with correct police and format…
So copy all of your ttf fonts to /opt/collaboraoffice5.3/share/fonts/truetype
Success but I will try OnlyOffice…

2 Likes