From 374f369ea249c3747904b862947c4414ab94c99d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Wed, 8 Apr 2026 12:19:43 +0000 Subject: [PATCH] storage normalization, security middlewares --- .vscode/settings.json | 5 +++ README.md | 24 +++++++++-- deploy/app/helm-values.yaml | 17 ++++---- deploy/infra/ingress.yaml | 76 ++++++++++++++++++++++++--------- deploy/infra/kustomization.yaml | 1 + deploy/infra/middlewares.yaml | 41 ++++++++++++++++++ 6 files changed, 134 insertions(+), 30 deletions(-) create mode 100644 .vscode/settings.json create mode 100644 deploy/infra/middlewares.yaml diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..e97c8c5 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "cSpell.words": [ + "authentik" + ] +} \ No newline at end of file diff --git a/README.md b/README.md index f02ed33..9ed2164 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,8 @@ Using [NextCloud](https://nextcloud.com/) - [preview generator](#preview-generator) - [repair tree](#repair-tree) - [Repair AppData Cache (Fix App Store 500 Error)](#repair-appdata-cache-fix-app-store-500-error) + - [force create indexes](#force-create-indexes) + - [Mimetype migrations available](#mimetype-migrations-available) - [delete file locks](#delete-file-locks) - [Setup and Deploy](#setup-and-deploy) - [App](#app) @@ -73,7 +75,7 @@ This procedure clears the broken cache and forces Nextcloud to rebuild it. ```bash # Enable maintenance mode -sudo -u www-data php occ maintenance:mode --on +su -s /bin/bash www-data -c "php occ maintenance:mode --on;" # Remove stale filecache entries (run inside MariaDB) mariadb -u root -p nextcloud -e "DELETE FROM oc_filecache WHERE path LIKE 'appdata_ocuihfjhxkga/appstore%';" @@ -82,10 +84,26 @@ mariadb -u root -p nextcloud -e "DELETE FROM oc_filecache WHERE path LIKE 'appda rm -rf /var/www/html/data/appdata_* # Disable maintenance mode -sudo -u www-data php occ maintenance:mode --off +su -s /bin/bash www-data -c "php occ maintenance:mode --off" # Rebuild appdata and caches -sudo -u www-data php occ maintenance:repair +su -s /bin/bash www-data -c "php occ maintenance:repair" +``` + +### force create indexes + +```bash + +# Rebuild appdata and caches +su -s /bin/bash www-data -c "php occ db:add-missing-indices" +``` + +### Mimetype migrations available + +```bash + +# Rebuild appdata and caches +su -s /bin/bash www-data -c "php occ maintenance:repair --include-expensive" ``` ### delete file locks diff --git a/deploy/app/helm-values.yaml b/deploy/app/helm-values.yaml index aa94e41..584724a 100644 --- a/deploy/app/helm-values.yaml +++ b/deploy/app/helm-values.yaml @@ -118,25 +118,26 @@ nextcloud: extraVolumeMounts: - name: mf-nextcloud - mountPath: /var/www/html/data/marcio.fernandes/files + mountPath: /mnt/users/marcio.fernandes - name: mf-documents - mountPath: /var/www/html/data/marcio.fernandes/files/Documents - + mountPath: /mnt/users/marcio.fernandes/Documents + - name: mf-photos - mountPath: /var/www/html/data/marcio.fernandes/files/Photos + mountPath: /mnt/users/marcio.fernandes/Photos - name: media-gaming - mountPath: /var/www/html/data/marcio.fernandes/files/Gaming + mountPath: /mnt/shared/Gaming - name: media-music - mountPath: /var/www/html/data/marcio.fernandes/files/Music + mountPath: /mnt/shared/Music - name: media-videos - mountPath: /var/www/html/data/marcio.fernandes/files/Videos + mountPath: /mnt/shared/Videos - name: it-storage - mountPath: /var/www/html/data/marcio.fernandes/files/NeirdStorage + mountPath: /mnt/shared/NerdStuff + configs: # appstore.override.config.php: |- #