pretty urls in nextcloud...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2024-01-15 00:26:10 +03:00
parent f8a27157f5
commit fb17a8dbc0

View File

@ -100,6 +100,14 @@ IP=$([ -z $DRY_RUN ] && lxc-attach $ID -- hostname -I)
sed -z -i \
-e \"s/\\(trusted_domains[^)]*\\)/\\1 2 => '${IP/ *}',\\n /\" \
/var/www/nextcloud/config/config.php"
# remove /index.php from urls...
# for more info see:
# https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#pretty-urls
@ lxc-attach $ID -- bash -c "\
sed -z -i \
-e \"s/\\(trusted_proxies[^)]*\\)/ 'htaccess.RewriteBase' => '/',\\n \\1/\" \
/var/www/nextcloud/config/config.php"
@ lxc-attach $ID -- turnkey-occ maintenance:update:htaccess
echo "# Copying assets..."
@ pct-push-r $ID ./assets /