From aa86161af08c3f706a0bda6bf61be70376813c48 Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Tue, 17 Feb 2026 03:49:01 +0100 Subject: [PATCH] fix(nextcloud): Remove /apps/ location block breaking static files The ^~ /apps/ location was taking precedence over static file regex locations, causing SVG icons to return 404. The root location's rewrite to index.php already handles app routing correctly. Co-Authored-By: Claude Opus 4.5 --- .../secubox-app-nextcloud/files/usr/sbin/nextcloudctl | 5 ----- 1 file changed, 5 deletions(-) diff --git a/package/secubox/secubox-app-nextcloud/files/usr/sbin/nextcloudctl b/package/secubox/secubox-app-nextcloud/files/usr/sbin/nextcloudctl index fb1d247a..83b7d5a2 100644 --- a/package/secubox/secubox-app-nextcloud/files/usr/sbin/nextcloudctl +++ b/package/secubox/secubox-app-nextcloud/files/usr/sbin/nextcloudctl @@ -400,11 +400,6 @@ server { location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)(?:$|/) { return 404; } location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) { return 404; } - # Route /apps/* through index.php (fix 403 on app directories) - location ^~ /apps/ { - rewrite ^ /index.php\$request_uri last; - } - location ~ \.php(?:$|/) { rewrite ^/(?!index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|ocs-provider\/.+|.+\/richdocumentscode(_arm64)?\/proxy) /index.php$request_uri;