From bd96c794f2f5500845face893f30c441356e15ad Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 3 Feb 2024 08:15:33 +0100 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index c272291..e05466f 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -96,6 +96,14 @@ if ($unsafe) { # Finally, set all the rules you composed above. more_set_headers "Content-Security-Policy: default-src 'none'; child-src $childSrc; worker-src $workerSrc; media-src $mediaSrc; style-src $styleSrc; script-src $scriptSrc; connect-src $connectSrc; font-src $fontSrc; img-src $imgSrc; frame-src $frameSrc; frame-ancestors $frameAncestors"; +# Include mime.types to be able to support .mjs files (see "types" below) +include mime.types; + +# Add support for .mjs files used by pdfjs +types { + application/javascript mjs; +} + location ^~ /cryptpad_websocket { proxy_pass http://127.0.0.1:__PORT__; proxy_set_header X-Real-IP $remote_addr;