From 5e0416bab1e23b9ed2440c80ba2913130c67b2f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Chavero?= Date: Mon, 27 Sep 2021 21:33:48 -0600 Subject: [PATCH] Add loolwsd load balance documentation --- nextcloud/README.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/nextcloud/README.md b/nextcloud/README.md index 8a1973b..be9141e 100644 --- a/nextcloud/README.md +++ b/nextcloud/README.md @@ -26,6 +26,7 @@ workstation $ ansible-playbook -vvv -u root -i 192.168.1.112, -e ansible_python_ ``` + === Parameters There are multiple variables that can be set to customize the nextcloud installation. @@ -36,3 +37,40 @@ There are multiple variables that can be set to customize the nextcloud installa workstation $ ansible-playbook -vvv -u root -i 192.168.1.112, -e nextcloud_domain_name="nextcloud.example.com" nextcloud_appliance.yaml ``` +== Collabora Office Load Balance + +Collabora uses the WOPI procotol. This protocol can be balanced by using the `WOPISrc` to send the traffic to the proper loolwsd +server. + +Disable SSL of the loolwsd web service. + +==== loolwsd.xml + +``` +false + +true +``` + +==== HAProxy + +Configure HAProxy to extract the `WOPISrc` URL parameter and use it to send always the traffic to the same `loolwsd` backend. + +``` +Frontend loolwsdbind \*:443 ssl crt /Path to your certificate_and_key.pem + http-request set-header X-HAProxy-loolwsd %[url_param(WOPISrc)] + mode http + default_backend loolwsd + +backend loolwsd timeout tunnel 3600s + mode http + balance hdr(X-HAProxy-loolwsd) + server lool1 :9980 + server lool2 :9980 + server lool3 :99 +``` + + +References: +* https://www.microfocus.com/documentation/filr/filr-4/filr-inst/t4duiofh1cz7.html +