Skip to content

Nextcloud et Collabora online configuration

Marc Farré edited this page Sep 26, 2017 · 1 revision

Installation et configuration de Nextcloud et Collabora online.

Prérequis

Ubuntu 16.04 server + LAMP + sudo apt install smbclient

Installation de NextCloud

  1. Récupérer Nextcloud
su web
mkdir ~/www/cloud.communecter.org
cd ~/www/cloud.communecter.org
wget https://download.nextcloud.com/server/releases/nextcloud-xxx.zip
unzip nextcloud-xxx.zip -d .
mv nextcloud/ public_html
mkdir data

Rajouter les icônes des applications externes dans nextcloud/apps/external/img qui sont dans ce fichier zip

  1. Configurer apache

  2. Aller à https://cloud.communecter.org pour configurer

  3. Modifier le fichier config/config.php :

array (
    0 => 'localhost',
    1 => 'cloud.communecter.org',
    2 => '83.166.144.90',
  ),

Installation de Collabora

Suivre les instructions ici : https://nextcloud.com/collaboraonline/ Docker alternatif : https://hub.docker.com/r/thedarkknight/libreoffice-online-unlimited/

Config apache dans /etc/apache2/site-availables :

	<VirtualHost *:80>
                        ServerName collabora.communecter.org

                        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
	</VirtualHost>

Récupérer et lancer le docker (l'option --restart always fera que le conteneur sera rajouté au service docker qui lui est lancé automatiquement au démarrage de l'ordi)

sudo su
docker pull collabora/code
ufw allow 9980
docker run -t -d -p 127.0.0.1:9980:9980 -e 'domain=cloud\\.communecter\\.org\|cloud\\.openappecosystem\\.cc\|cloud\\.cosystem\\.cc' --restart always --cap-add MKNOD collabora/code

Puis, dans l'interface web de NextCloud, rajouter l'appli Collabora et la configurer en donnant l'adresse du serveur : https://collabora.communecter.org

Clone this wiki locally