|
1450 | 1450 | priority = 500; |
1451 | 1451 | extraConfig = '' |
1452 | 1452 | # legacy support (i.e. static files and directories in cfg.package) |
1453 | | - rewrite ^/(?!index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|ocs-provider\/.+|.+\/richdocumentscode\/proxy) /index.php$request_uri; |
| 1453 | + rewrite ^/(?!index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|ocs-provider\/.+|.+\/richdocumentscode(_arm64)?\/proxy) /index.php$request_uri; |
1454 | 1454 | include ${config.services.nginx.package}/conf/fastcgi.conf; |
1455 | 1455 | fastcgi_split_path_info ^(.+?\.php)(\\/.*)$; |
1456 | 1456 | set $path_info $fastcgi_path_info; |
|
1466 | 1466 | fastcgi_read_timeout ${builtins.toString cfg.fastcgiTimeout}s; |
1467 | 1467 | ''; |
1468 | 1468 | }; |
1469 | | - "~ \\.(?:css|js|mjs|svg|gif|png|jpg|jpeg|ico|wasm|tflite|map|html|ttf|bcmap|mp4|webm|ogg|flac)$".extraConfig = |
| 1469 | + "~ \\.(?:css|js|mjs|svg|gif|ico|jpg|jpeg|png|webp|wasm|tflite|map|html|ttf|bcmap|mp4|webm|ogg|flac)$".extraConfig = |
1470 | 1470 | '' |
1471 | 1471 | try_files $uri /index.php$request_uri; |
1472 | 1472 | expires 6M; |
|
1501 | 1501 | add_header X-Content-Type-Options nosniff; |
1502 | 1502 | add_header X-XSS-Protection "1; mode=block"; |
1503 | 1503 | add_header X-Robots-Tag "noindex, nofollow"; |
1504 | | - add_header X-Download-Options noopen; |
1505 | 1504 | add_header X-Permitted-Cross-Domain-Policies none; |
1506 | 1505 | add_header X-Frame-Options sameorigin; |
1507 | 1506 | add_header Referrer-Policy no-referrer; |
|
1517 | 1516 | gzip_comp_level 4; |
1518 | 1517 | gzip_min_length 256; |
1519 | 1518 | gzip_proxied expired no-cache no-store private no_last_modified no_etag auth; |
1520 | | - gzip_types application/atom+xml application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy; |
| 1519 | + gzip_types application/atom+xml text/javascript application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/wasm application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy; |
1521 | 1520 |
|
1522 | 1521 | ${optionalString cfg.webfinger '' |
1523 | 1522 | rewrite ^/.well-known/host-meta /public.php?service=host-meta last; |
|
0 commit comments