mirror of
https://github.com/flynx/proxmox-utils.git
synced 2026-10-04 13:28:38 +00:00
Compare commits
No commits in common. "8185b0608a29c1927b3049801bb77d9789b2f029" and "84389237da6a852064b07badb6c04613bb5bfe77" have entirely different histories.
8185b0608a
...
84389237da
@ -1,4 +0,0 @@
|
|||||||
Types: deb
|
|
||||||
URIs: https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-deb
|
|
||||||
Suites: ./
|
|
||||||
Signed-By: /usr/share/keyrings/collaboraonline-release-keyring.gpg
|
|
||||||
@ -127,55 +127,6 @@ echo "# Copying assets..."
|
|||||||
pctPushAssets $ID
|
pctPushAssets $ID
|
||||||
# XXX need to push proxy config to gate...
|
# 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..."
|
echo "# Disabling fail2ban..."
|
||||||
# NOTE: we do not need this as we'll be running from behind a reverse proxy...
|
# NOTE: we do not need this as we'll be running from behind a reverse proxy...
|
||||||
@ lxc-attach $ID systemctl stop fail2ban
|
@ lxc-attach $ID systemctl stop fail2ban
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user