From a3c9331a087a5d5ddba691149462478d0b9eda56 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Fri, 30 Sep 2022 02:47:56 +0200 Subject: [PATCH] Add content headers to config (#3731) * add content header * add content header * fix format * fix format --- docker/nginx.dev.conf | 3 +++ docker/production/nginx.prod.conf | 3 +++ 2 files changed, 6 insertions(+) diff --git a/docker/nginx.dev.conf b/docker/nginx.dev.conf index f76d239135c..f919ab7e74b 100644 --- a/docker/nginx.dev.conf +++ b/docker/nginx.dev.conf @@ -47,6 +47,9 @@ server { # Media files require user authentication auth_request /auth; + + # Content header to force download + add_header Content-disposition "attachment"; } # Use the 'user' API endpoint for auth diff --git a/docker/production/nginx.prod.conf b/docker/production/nginx.prod.conf index 741cc7541a7..8725a1453c8 100644 --- a/docker/production/nginx.prod.conf +++ b/docker/production/nginx.prod.conf @@ -46,6 +46,9 @@ server { # Media files require user authentication auth_request /auth; + + # Content header to force download + add_header Content-disposition "attachment"; } # Use the 'user' API endpoint for auth