mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-10-28 18:50:08 +00:00
pretty urls in nextcloud...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
f8a27157f5
commit
fb17a8dbc0
@ -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 /
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user