diff --git a/conf.d/code.shore.co.il.conf b/conf.d/code.shore.co.il.conf index 74247683f04de8d8802f356b591dc7ea2a64f049..5c985d2757ca89c9e46fc6732084b6f62f09d11e 100644 --- a/conf.d/code.shore.co.il.conf +++ b/conf.d/code.shore.co.il.conf @@ -22,13 +22,14 @@ server { include snippets/ssl-modern.conf; # The following was copied (and modified) from - # https://www.collaboraoffice.com/code/nginx-reverse-proxy/. + # https://sdk.collaboraonline.com/docs/installation/Proxy_settings.html#reverse-proxy-with-nginx-webserver. # static files - location ^~ /loleaflet { + location ^~ /browser { proxy_pass http://$code:9980$request_uri; proxy_http_version 1.1; include snippets/proxy-headers.conf; + proxy_hide_header X-Frame-Options; } # WOPI discovery URL @@ -46,7 +47,7 @@ server { } # main websocket - location ~ ^/lool/(.*)/ws$ { + location ~ ^/cool/(.*)/ws$ { proxy_pass http://$code:9980$request_uri; proxy_http_version 1.1; include snippets/proxy-headers.conf; @@ -54,14 +55,14 @@ server { } # download, presentation and image upload - location ~ ^/lool { + location ~ ^/(c|l)ool { proxy_pass http://$code:9980$request_uri; proxy_http_version 1.1; include snippets/proxy-headers.conf; } # Admin Console websocket - location ^~ /lool/adminws { + location ^~ /cool/adminws { proxy_pass http://$code:9980$request_uri; proxy_http_version 1.1; include snippets/proxy-headers.conf;