From 3d8aeeaaf3e6a24347bc4e821ac710238a263554 Mon Sep 17 00:00:00 2001
From: OniriCorpe <oniricorpe@disroot.org>
Date: Tue, 30 Jan 2024 01:55:31 +0100
Subject: [PATCH 1/4] Update app to 4.3.4

---
 manifest.toml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/manifest.toml b/manifest.toml
index 23438e4..fceb8e3 100644
--- a/manifest.toml
+++ b/manifest.toml
@@ -49,12 +49,12 @@ ram.runtime = "700M"
 
     [resources.sources]
     [resources.sources.main]
-    amd64.url = "https://download.pydio.com/pub/cells/release/4.3.1/linux-amd64/pydio-cells-4.3.1-linux-amd64.zip"
-    amd64.sha256 = "966337451cf007ff9294f15db830cda128162604bb44ccd91510fae292c790ee"
-    arm64.url = "https://download.pydio.com/pub/cells/release/4.3.1/linux-arm64/pydio-cells-4.3.1-linux-arm64.zip"
-    arm64.sha256 = "840d9a85e15892b52dd549152bef240015584b82feace9137e8b5b1660e80c43"
-    armhf.url = "https://download.pydio.com/pub/cells/release/4.3.1/linux-arm/pydio-cells-4.3.1-linux-arm.zip"
-    armhf.sha256 = "af200d58f3efd917bf8add2a0e8bfb3bc832780cca470070530afa6bb1caefd0"
+    amd64.url = "https://download.pydio.com/pub/cells/release/4.3.4/linux-amd64/pydio-cells-4.3.4-linux-amd64.zip"
+    amd64.sha256 = "55e8eb6db0bfbe5aab0fa00c7d0904c67ad7f14c8e03628c11b2f3d957d95731"
+    arm64.url = "https://download.pydio.com/pub/cells/release/4.3.4/linux-arm64/pydio-cells-4.3.4-linux-arm64.zip"
+    arm64.sha256 = "7fcf4f8ae97708f593a633a73a4979f18e498a1f76e55b1a5ff885ad0bcf1d57"
+    armhf.url = "https://download.pydio.com/pub/cells/release/4.3.4/linux-arm/pydio-cells-4.3.4-linux-arm.zip"
+    armhf.sha256 = "f661b213a6eea110e8d6c4ae44749f924521b59a5dd2d80b92c421e2aa85737a"
     in_subdir = false
 
     [resources.system_user]

From f9eef7610a534040a2578950667ae37183a47f8d Mon Sep 17 00:00:00 2001
From: OniriCorpe <oniricorpe@disroot.org>
Date: Tue, 30 Jan 2024 01:56:23 +0100
Subject: [PATCH 2/4] bump version

---
 manifest.toml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/manifest.toml b/manifest.toml
index fceb8e3..fe9f2d2 100644
--- a/manifest.toml
+++ b/manifest.toml
@@ -7,7 +7,7 @@ name = "Pydio"
 description.en = "File sharing platform"
 description.fr = "Plateforme de partage de fichiers"
 
-version = "4.3.1~ynh1"
+version = "4.3.4~ynh1"
 
 maintainers = ["julienmalik"]
 

From 3a92fedbb9c44c20c543a314910b498c9fa644d7 Mon Sep 17 00:00:00 2001
From: yunohost-bot <yunohost@yunohost.org>
Date: Tue, 30 Jan 2024 00:56:26 +0000
Subject: [PATCH 3/4] Auto-update README

---
 README.md    | 2 +-
 README_fr.md | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 1a85473..b20d04b 100644
--- a/README.md
+++ b/README.md
@@ -19,7 +19,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
 Cells V4 now provides secure, cloud-native, scalable, self-hosted, open-core document sharing and collaboration without putting your data at risk.
 
 
-**Shipped version:** 4.3.1~ynh1
+**Shipped version:** 4.3.4~ynh1
 
 ## Screenshots
 
diff --git a/README_fr.md b/README_fr.md
index 836f3df..96c1cfb 100644
--- a/README_fr.md
+++ b/README_fr.md
@@ -19,7 +19,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
 Cells V4 offre désormais un partage et une collaboration de documents sécurisés, cloud natifs, évolutifs, auto-hébergés et open-core sans mettre vos données en danger.
 
 
-**Version incluse :** 4.3.1~ynh1
+**Version incluse :** 4.3.4~ynh1
 
 ## Captures d’écran
 

From 6cae5eff7da4f6ca087b68fdab1bbbd650825934 Mon Sep 17 00:00:00 2001
From: OniriCorpe <oniricorpe@disroot.org>
Date: Tue, 30 Jan 2024 03:21:32 +0100
Subject: [PATCH 4/4] update nginx config according to the docs (#23)

* update nginx config according to the docs

* comment
---
 conf/nginx.conf | 29 +++++++++++++++++++++++++----
 1 file changed, 25 insertions(+), 4 deletions(-)

diff --git a/conf/nginx.conf b/conf/nginx.conf
index 1589b56..8cce351 100644
--- a/conf/nginx.conf
+++ b/conf/nginx.conf
@@ -1,13 +1,34 @@
+# https://pydio.com/en/docs/kb/deployment/running-cells-behind-nginx-reverse-proxy
+
+# Allow any size file to be uploaded
+client_max_body_size 0;
+# Disable buffering
+proxy_buffering off;
+
 location / {
   proxy_pass https://127.0.0.1:__PORT__;
 
+  # Uncomment this to enable gRPC and thus be able to use cells-sync
+  if ($http_content_type = "application/grpc") {
+    grpc_pass grpcs://127.0.0.1:__PORT_GRPC__;
+  }
+
   # Include SSOWAT user panel.
   include conf.d/yunohost_panel.conf.inc;
 }
 
+# Enable the websocket
 location /ws/ {
-    proxy_pass https://127.0.0.1:__PORT__;
-    proxy_http_version 1.1;
-    proxy_set_header Upgrade $http_upgrade;
-    proxy_set_header Connection "Upgrade";
+  proxy_pass https://127.0.0.1:__PORT__;
+  proxy_http_version 1.1;
+  proxy_set_header Upgrade $http_upgrade;
+  proxy_set_header Connection "Upgrade";
 }
+
+# Necessary to use Collabora (online edition of office documents)
+location /cool/ {
+  proxy_pass https://localhost:__PORT__;
+  proxy_http_version 1.1;
+  proxy_set_header Upgrade $http_upgrade;
+  proxy_set_header Connection "Upgrade";
+}
\ No newline at end of file