Compare commits

..

2 Commits

Author SHA1 Message Date
c82b6a23a1 minor stuff...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-12-13 15:36:40 +03:00
b6986f8114 now works through traefik...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-12-13 14:32:52 +03:00

View File

@ -24,7 +24,7 @@ DFL_ID=${DFL_ID:=1000}
DFL_CTHOSTNAME=${DFL_CTHOSTNAME:=nextcloud}
DFL_CORES=${DFL_CORES:=2}
DFL_RAM=${DFL_RAM:=2048}
DFL_RAM=${DFL_RAM:=4096}
DFL_SWAP=${DFL_SWAP:=${DFL_RAM}}
DFL_DRIVE=${DFL_DRIVE:=40}
@ -118,10 +118,14 @@ done
sed -z -i \
-e \"s/\\(trusted_domains[^)]*\\)/\\1${ADDRS}/\" \
/var/www/nextcloud/config/config.php"
# set opcache.interned_strings_buffer...
PHP_VERSION=$(lxc-attach $ID -- php --version \
| sed -ne 's/^PHP \([0-9]\+\.[0-9]\+\).*/\1/p')
@ lxc-attach $ID -- bash -c "\
sed -i \
-e '/^\$CONFIG =/ a\ '\''opcache.interned_strings_buffer'\'' => 32,' \
/var/www/nextcloud/config/config.php"
-e '/opcache.interned_strings_buffer/ a opcache.interned_strings_buffer=32' \
/etc/php/${PHP_VERSION}/cli/php.ini"
# remove /index.php from urls...
# for more info see:
@ -146,7 +150,9 @@ pctPushAssets $ID
# Colabora...
if ! [ -z $COLLABORA_OFFICE ] ; then
echo "# Collabora office..."
# coolwsd...
# XXX still need to make this work through a reverse proxy...
# see:
# https://sdk.collaboraonline.com/docs/installation/Configuration.html
@ lxc-attach $ID -- bash -c "\
@ -157,6 +163,7 @@ if ! [ -z $COLLABORA_OFFICE ] ; then
&& apt install -y coolwsd code-brand"
# XXX should these be set in here or as args in the coolwsd.service ???
# /etc/coolwsd/coolwsd.xml
# XXX add groups...
# ssl>enable -> false
@ lxc-attach $ID -- bash -c "\
sed -i \
@ -167,6 +174,13 @@ if ! [ -z $COLLABORA_OFFICE ] ; then
sed -i \
'/<ssl /,+5{ s/\(<termination [^>]*>\)false\(<\/termination>\)/\1true\2/ }' \
/etc/coolwsd/coolwsd.xml"
# alias_groups...
@ lxc-attach $ID -- bash -c "\
sed -i \
-e '/<alias_groups .* mode=\"first\"/ s/mode=\"first\"/mode=\"groups\"/ ' \
-e '/<\/alias_groups>/ i\ <group><host allow=\"true\">https://${APP_DOMAIN}</host></group>' \
-e '/<\/alias_groups>/ i\ <group><host allow=\"true\">https://${CTHOSTNAME}.srv</host></group>' \
/etc/coolwsd/coolwsd.xml"
@ lxc-attach $ID -- systemctl restart coolwsd
# apache2...