Compare commits

...

5 Commits

Author SHA1 Message Date
8185b0608a ...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-12-12 03:59:40 +03:00
ccddf616e6 added indent...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-12-12 03:18:03 +03:00
c6ee47cd5c scripting seems to be done, need testing...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-12-12 02:57:36 +03:00
a26edda907 added collabora server config -- still disabled...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-12-12 02:19:18 +03:00
f3ed979b69 working on colabora standalone server cfg...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-12-11 23:47:38 +03:00
2 changed files with 53 additions and 0 deletions

View File

@ -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

View File

@ -127,6 +127,55 @@ echo "# Copying assets..."
pctPushAssets $ID
# XXX need to push proxy config to gate...
# Colabora...
if false ; then
echo "# Colabora office..."
# apache2...
@ lxc-attach $ID -- a2enmod proxy
@ lxc-attach $ID -- a2enmod proxy_http
@ lxc-attach $ID -- a2enmod proxy_connect
@ lxc-attach $ID -- a2enmod proxy_wstunnel
# XXX TEST...
@ lxc-attach $ID -- bash -c "\
sed -i \
-e '/<VirtualHost \*:443>/,/<\/VirtualHost>/ {
/<\/VirtualHost>/ i\ Include /etc/apache2/conf-available/coolwsd.conf
}' \
/etc/apache2/sites-available/nextcloud.conf"
# 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 \
'/<ssl /,+5{ s/\(<enable [^>]*>\)true\(</enable>\)/\1false\2/ }' \
/etc/coolwsd/coolwsd.xml"
# ssl>termination -> true
@ lxc-attach $ID -- bash -c "\
sed -i \
'/<ssl /,+5{ s/\(<termination [^>]*>\)false\(</termination>\)/\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://${APP_DOMAIN}"
@ lxc-attach $ID -- turnkey-occ config:app:set richdocuments wopi_url "https://${APP_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