diff --git a/.metadata b/.metadata index e27248a..bb2bcc8 100644 Binary files a/.metadata and b/.metadata differ diff --git a/.recipes/staticweb_filebrowser/.templates/nginx/nginx_filebrowser.inc b/.recipes/staticweb_filebrowser/.templates/nginx/nginx_filebrowser.inc index a049822..93fb38f 100644 --- a/.recipes/staticweb_filebrowser/.templates/nginx/nginx_filebrowser.inc +++ b/.recipes/staticweb_filebrowser/.templates/nginx/nginx_filebrowser.inc @@ -21,6 +21,11 @@ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; + # This hack reverts a modification in Filebrowser (2.33.1): + # https://github.com/filebrowser/filebrowser/commit/8a14018861fe581672bbd27cdc3ae5691f70a108 + # We don't force to download PDFs. + more_clear_headers -t 'application/pdf' 'Content-Disposition'; + #websockets proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade;