From 5175ed10c5446e67c437920cb5753833fcba377e Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 29 Jan 2019 11:56:55 +0100 Subject: [PATCH] update example nginx config for spreadsheets --- docs/example.nginx.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/example.nginx.conf b/docs/example.nginx.conf index 5c4ff2fbe..9d856a5a9 100644 --- a/docs/example.nginx.conf +++ b/docs/example.nginx.conf @@ -46,6 +46,8 @@ server { set $unsafe 0; if ($uri = "/pad/inner.html") { set $unsafe 1; } + if ($uri = "/sheet/inner.html") { set $unsafe 1; } + if ($uri = "/common/onlyoffice/web-apps/apps/spreadsheeteditor/main/index.html") { set $unsafe 1; } if ($host != sandbox.cryptpad.info) { set $unsafe 0; } if ($unsafe) { set $scriptSrc "'self' 'unsafe-eval' 'unsafe-inline' new2.cryptpad.fr cryptpad.fr"; @@ -95,7 +97,7 @@ server { try_files $uri =404; } - location ~ ^/(register|login|settings|user|pad|drive|poll|slide|code|whiteboard|file|media|profile|contacts|todo|filepicker|debug|kanban)$ { + location ~ ^/(register|login|settings|user|pad|drive|poll|slide|code|whiteboard|file|media|profile|contacts|todo|filepicker|debug|kanban|sheet)$ { rewrite ^(.*)$ $1/ redirect; }