add trusted proxy, post-install/upgrade hooks, occ docs and admin review

- Add TRUSTED_PROXIES=caddy to fix reverse proxy header warning
- Add post-installation hook: maintenance window, phone region, DB indices, MIME migrations
- Add post-upgrade hook: DB indices and MIME migrations
- Add occ commands section to README
- Add nextcloud-review.md with admin warning fixes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-22 16:33:40 +01:00
parent 7225f526da
commit 0e0a6ff1eb
5 changed files with 219 additions and 0 deletions

10
nextcloud/hooks/post-upgrade.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
set -eu
echo "==> Post-upgrade: adding missing DB indices..."
php occ db:add-missing-indices
echo "==> Post-upgrade: running MIME type migrations..."
php occ maintenance:repair --include-expensive
echo "==> Post-upgrade: done."