From a26edda907bbc696454ac1ad7d46ac70da004cd9 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 12 Dec 2024 02:19:18 +0300 Subject: [PATCH] added collabora server config -- still disabled... Signed-off-by: Alex A. Naanou --- .../sources.list.d/collaboraonline.sources | 4 +++ nextcloud/make.sh | 36 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 nextcloud/assets/etc/apt/sources.list.d/collaboraonline.sources diff --git a/nextcloud/assets/etc/apt/sources.list.d/collaboraonline.sources b/nextcloud/assets/etc/apt/sources.list.d/collaboraonline.sources new file mode 100644 index 0000000..c91bdb2 --- /dev/null +++ b/nextcloud/assets/etc/apt/sources.list.d/collaboraonline.sources @@ -0,0 +1,4 @@ +Types: deb +URIs: https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-deb +Suites: ./ +Signed-By: /usr/share/keyrings/collaboraonline-release-keyring.gpg diff --git a/nextcloud/make.sh b/nextcloud/make.sh index 050e7c8..3f92c85 100755 --- a/nextcloud/make.sh +++ b/nextcloud/make.sh @@ -127,6 +127,42 @@ echo "# Copying assets..." pctPushAssets $ID # XXX need to push proxy config to gate... +# Colabora... +if false ; then + echo "# Colabora office..." + # coolwsd... + # see: + # https://sdk.collaboraonline.com/docs/installation/Configuration.html + @ lxc-attach $ID -- bash -c "\ + cd /usr/share/keyrings \ + && wget https://collaboraoffice.com/downloads/gpg/collaboraonline-release-keyring.gpg" + @ lxc-attach $ID -- bash -c "\ + apt update \ + && apt install coolwsd code-brand" + # XXX should these be set in here or as args in the coolwsd.service ??? + # /etc/coolwsd/coolwsd.xml + # ssl>enable -> false + @ lxc-attach $ID -- bash -c "\ + sed -i \ + '/]*>\)true\(\)/\1false\2/ }' \ + /etc/coolwsd/coolwsd.xml" + # ssl>termination -> true + @ lxc-attach $ID -- bash -c "\ + sed -i \ + '/]*>\)false\(\)/\1true\2/ }' \ + /etc/coolwsd/coolwsd.xml" + @ lxc-attach $ID -- systemctl restart coolswd + # nextcloud... + @ lxc-attach $ID -- turnkey-occ app:install richdocuments + @ lxc-attach $ID -- turnkey-occ config:app:set richdocuments disable_certificate_verification yes + # XXX what variable should we use??? + @ lxc-attach $ID -- turnkey-occ config:app:set richdocuments public_wopi_url "https://${NEXTCLOUD_SUBDOMAIN}${DOMAIN}" + @ lxc-attach $ID -- turnkey-occ config:app:set richdocuments wopi_url "https://${NEXTCLOUD_SUBDOMAIN}${DOMAIN}" + # XXX do we need this??? + @ lxc-attach $ID -- turnkey-occ config:app:set richdocuments types prevent_group_restriction + @ lxc-attach $ID -- turnkey-occ config:app:set richdocuments enabled yes +fi + echo "# Disabling fail2ban..." # NOTE: we do not need this as we'll be running from behind a reverse proxy... @ lxc-attach $ID systemctl stop fail2ban