From 64bfda6bf0c13288d4b5220f54562203ba02279a Mon Sep 17 00:00:00 2001 From: Sean Morley <98704938+seanmorley15@users.noreply.github.com> Date: Sat, 31 May 2025 21:08:20 -0400 Subject: [PATCH] Update backend/nginx.conf Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- backend/nginx.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/nginx.conf b/backend/nginx.conf index 18d410e..dabdfb9 100644 --- a/backend/nginx.conf +++ b/backend/nginx.conf @@ -43,6 +43,8 @@ http { # Separate location for PDFs under /protectedMedia/ location ~* ^/protectedMedia/.*\.pdf$ { + internal; + alias /code/media/; add_header Content-Security-Policy "default-src 'self'; script-src 'none'; object-src 'none'; base-uri 'none'" always; add_header X-Content-Type-Options nosniff always; add_header X-Frame-Options SAMEORIGIN always;