Change:
Describe the bug Nextcloud tries to load several * files, but the nginx config redirects the user away. works redirects to Both files exist in the package: The map suffix needs to be here to make them work. I also get an endless spinner on the files tab, so the nginx config probably has more places where it is out of sync with the upstream docs. To Reproduce Steps to reproduce the behavior: nextcloud Browser console source map errors Expected behavior They should be accessible. Screenshots If applicable, add screenshots to help explain your problem. Notify maintainers <!-- Please @ people who are in the list of the offending package or module. If in doubt, check for whoever last touched something. -- Metadata Maintainer information:
I also installed the maps application and it seems there are more routes missing. The file requested is located at , but I guess a more generic routes is warranted.

Discussion:
''; }; "/" = { <del> priority = 200; extraConfig = "rewrite ^ /index.php;"; </del> <ins> priority = 900; extraConfig = "try_files $uri $uri/ /index.php$request_uri;"; </ins> }; "~ ^/store-apps" = { priority = 201; extraConfig = "root ${cfg.home};"; }; <del> "= /.well-known/carddav" = { </del> <ins> "^~ /.well-known" = { </ins> priority = 210; <del> extraConfig = "return 301 $scheme://$host/remote.php/dav;"; }; "= /.well-known/caldav" = { priority = 210; extraConfig = "return 301 $scheme://$host/remote.php/dav;"; }; "~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/" = { priority = 300; extraConfig = "deny all;"; }; "~ ^/(?:.|autotest|occ|issue|indie|db_|console)" = { priority = 300; extraConfig = "deny all;"; </del> <ins> extraConfig = '' location = /.well-known/carddav { return 301 $scheme://$host/remote.php/dav; } location = /.well-known/caldav { return 301 $scheme://$host/remote.php/dav; } try_files $uri $uri/ =404; ''; </ins> }; <del> "~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+|ocm-provider/.+).php(?:$|/)" = { </del> <ins> "~ ^/(?:build|tests|config|lib|3rdparty|templates|data)(?:$|/)".extraConfig = '' return 404; ''; "~ ^/(?:.|autotest|occ|issue|indie|db_|console)".extraConfig = '' return 404; ''; "~ .php(?:$|/)" = { </ins> priority = 500; extraConfig = '' include ${config.services.nginx.package}/conf/fastcgi.conf; <del> fastcgi_split_path_info ^(.+.php)(/.*)$; </del> <ins> fastcgi_split_path_info ^(.+?.php)(/.*)$; set $path_info $fastcgi_path_info; </ins> try_files $fastcgi_script_name =404; <del> fastcgi_param PATH_INFO $fastcgi_path_info; </del> <ins> fastcgi_param PATH_INFO $path_info; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; </ins> fastcgi_param HTTPS ${if cfg.https then "on" else "off"}; fastcgi_param modHeadersAvailable true; fastcgi_param front_controller_active true;

fastcgi_read_timeout 120s; ''; }; <del> "~ ^/(?:updater|ocs-provider|ocm-provider)(?:$|/)".extraConfig = '' try_files $uri/ =404; index index.php; ''; "~ .(?:css|js|woff2?|svg|gif)$".extraConfig = '' </del> <ins> "~ .(?:css|js|svg|gif|map)$".extraConfig = '' </ins> try_files $uri /index.php$request_uri; <del> add_header Cache-Control "public, max-age=15778463"; add_header X-Content-Type-Options nosniff; add_header X-XSS-Protection "1; mode=block"; add_header X-Robots-Tag none; add_header X-Download-Options noopen; add_header X-Permitted-Cross-Domain-Policies none; add_header X-Frame-Options sameorigin; add_header Referrer-Policy no-referrer; </del> <ins> expires 6M; </ins> access_log off; ''; <del> "~ .(?:png|html|ttf|ico|jpg|jpeg|bcmap|mp4|webm)$".extraConfig = '' </del> <ins> "~ .woff2?$".extraConfig = '' </ins> try_files $uri /index.php$request_uri; <ins> expires 7d; </ins> access_log off; ''; <ins> "~ ^/(?:updater|ocs-provider|ocm-provider)(?:$|/)".extraConfig = '' try_files $uri/ =404; index index.php; ''; </ins> }; extraConfig = '' <ins> index index.php index.html /index.php$request_uri; expires 1m; </ins> add_header X-Content-Type-Options nosniff; add_header X-XSS-Protection "1; mode=block"; add_header X-Robots-Tag none;

add_header X-Frame-Options sameorigin; add_header Referrer-Policy no-referrer; add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always; <del> error_page 403 /core/templates/403.php; error_page 404 /core/templates/404.php; </del> client_max_body_size ${cfg.maxUploadSize}; fastcgi_buffers 64 4K; fastcgi_hide_header X-Powered-By;