From 531a7cf39e63e15548c35753662c0c0a3fc03157 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20Zolt=C3=A1n?= Date: Wed, 25 Jun 2025 11:35:31 +0200 Subject: [PATCH] Undo the maintainer's change: we won't force the download of PDFs. --- .metadata | Bin 15851 -> 15851 bytes .../.templates/nginx/nginx_filebrowser.inc | 5 +++++ 2 files changed, 5 insertions(+) diff --git a/.metadata b/.metadata index e27248a7c58bd7fb5d1d2a0d21cfc3f9c831a345..bb2bcc82dea4b435c2063e975383e7c59c61f27c 100644 GIT binary patch delta 64 zcmaD|{knQXGaJuO<%kRhAXsG2U^IE6nCRs52CAD+vgHW#=p2d$%M|Q=#ntR$(AF`Gyn0)bdXHfM-KVTj#Auw S%t|*-PBzpP-JGJ)E(!oA@)sxo 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;