mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-10-29 11:10:09 +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 \
|
sed -z -i \
|
||||||
-e \"s/\\(trusted_domains[^)]*\\)/\\1 2 => '${IP/ *}',\\n /\" \
|
-e \"s/\\(trusted_domains[^)]*\\)/\\1 2 => '${IP/ *}',\\n /\" \
|
||||||
/var/www/nextcloud/config/config.php"
|
/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..."
|
echo "# Copying assets..."
|
||||||
@ pct-push-r $ID ./assets /
|
@ pct-push-r $ID ./assets /
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user