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