From 5cd25e919f00e072dceafcff57bb70095bba2021 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Sat, 3 Dec 2022 19:47:51 +0200
Subject: [PATCH] CODE updates.

---
 conf.d/code.shore.co.il.conf | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/conf.d/code.shore.co.il.conf b/conf.d/code.shore.co.il.conf
index 7424768..5c985d2 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;
-- 
GitLab