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;