mirror of
https://github.com/flynx/proxmox-utils.git
synced 2026-01-10 13:27:51 +00:00
Compare commits
5 Commits
84389237da
...
8185b0608a
| Author | SHA1 | Date | |
|---|---|---|---|
| 8185b0608a | |||
| ccddf616e6 | |||
| c6ee47cd5c | |||
| a26edda907 | |||
| f3ed979b69 |
@ -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
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user