1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cryptpad_ynh.git synced 2024-09-03 18:26:14 +02:00

Update nginx.conf

This commit is contained in:
ericgaspar 2024-02-03 08:15:33 +01:00
parent 457ec2b26a
commit bd96c794f2

View file

@ -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;