@@ -9,7 +9,6 @@ url.redirect += (
99)
1010
1111$HTTP["url"] =~ "^/nextcloud($|/)" {
12-
1312 # Hardening
1413 # - Directories
1514 $HTTP["url"] =~ "^/nextcloud/(build|tests|config|lib|3rdparty|templates|data)($|/)" { url.access-deny = ("") }
@@ -18,7 +17,7 @@ $HTTP["url"] =~ "^/nextcloud($|/)" {
1817 # - Directory listing
1918 dir-listing.activate = "disable"
2019 # - Security and cache control headers for static resources
21- $HTTP["url"] =~ "\.(css|js|svg|gif|png|jpg|ico|wasm|tflite|map|woff2?)$" {
20+ $HTTP["url"] =~ "\.(css|js|mjs| svg|gif|png|jpg|ico|wasm|tflite|map|woff2?)$" {
2221 setenv.add-response-header += (
2322 "Referrer-Policy" => "no-referrer",
2423 "X-Content-Type-Options" => "nosniff",
@@ -30,15 +29,13 @@ $HTTP["url"] =~ "^/nextcloud($|/)" {
3029 "Cache-Control" => "public, max-age=15778463",
3130 )
3231 }
33-
3432 # Rewrites
3533 url.rewrite-once += (
3634 "^/nextcloud/remote/(.*)" => "/nextcloud/remote.php/$1",
3735 "^/nextcloud/ocm-provider($|/\?.*)" => "/nextcloud/index.php$1"
3836 )
3937 url.rewrite-if-not-file += (
40- "^/nextcloud/((core/ajax/update|cron|public|remote|status|ocs/v[12])\.php|ocs-provider/|updater/)" => "",
38+ "^/nextcloud/((core/ajax/update|cron|public|remote|status|ocs/v[12]|richdocumentscode(_arm64)?/proxy )\.php|ocs-provider/|updater/)" => "",
4139 "^/nextcloud(.*)" => "/nextcloud/index.php$1"
4240 )
43-
4441}
0 commit comments