From b5c417470047af9e81598f891bbaaf23e07a686a Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Sat, 18 Jan 2025 09:22:46 +0100 Subject: [PATCH] default mediafiles content disposition header attatchement --- nginx/conf.d/Recipes.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/nginx/conf.d/Recipes.conf b/nginx/conf.d/Recipes.conf index 9cda0f745..e3b4456da 100644 --- a/nginx/conf.d/Recipes.conf +++ b/nginx/conf.d/Recipes.conf @@ -8,6 +8,7 @@ server { # serve media files location /media/ { alias /media/; + add_header Content-Disposition 'attachment; filename="$args"'; } # pass requests for dynamic content to gunicorn location / {