From b4bf0a202c62f7e919a2bdbd63ec20e5f318e1c6 Mon Sep 17 00:00:00 2001 From: Romaric Mourgues Date: Wed, 19 Apr 2023 15:53:36 +0200 Subject: [PATCH] Minor fixes --- Documentation/docs/plugins.md | 1 + tdrive/backend/node/config/default.json | 72 +------------------------ 2 files changed, 3 insertions(+), 70 deletions(-) diff --git a/Documentation/docs/plugins.md b/Documentation/docs/plugins.md index 696ec63d..c83e0e06 100644 --- a/Documentation/docs/plugins.md +++ b/Documentation/docs/plugins.md @@ -84,6 +84,7 @@ - `plugins.id` is mandatory and must be unique to each plusing - `plugins.internal_domain` (only if installed inside the same docker and same domain) is the internal domain of the plugin, it must be the same as the one in the docker-compose.yml file - `plugins.external_prefix` (only if installed outside of the docker) is the external prefix of the plugin. When the frontend will call https://tdrive.app/plugins/onlyoffice/ it will be redirected to the internal_domain. +- **If your server and frontend runs on different urls** then you must replace all the /plugins[...] by http://my_server_url/plugins[...] except for the external_prefix URI. ## Add and run the docker container for the plugin diff --git a/tdrive/backend/node/config/default.json b/tdrive/backend/node/config/default.json index 2daeb9c4..eee596d4 100644 --- a/tdrive/backend/node/config/default.json +++ b/tdrive/backend/node/config/default.json @@ -139,76 +139,8 @@ "sender": "noreply@twake.app" }, "applications": { - "grid": [ - { - "name": "Tmail", - "logo": "/public/img/grid/tmail.png", - "url": "https://tmail.linagora.com/" - }, - { - "name": "Tdrive", - "logo": "/public/img/grid/tdrive.png", - "url": "https://twake.app/" - } - ], - "plugins": [ - { - "id": "tdrive_onlyoffice", - "internal_domain": "http://plugins_onlyoffice:5000/", - "external_prefix": "/plugins/onlyoffice/", - "display": { - "tdrive": { - "version": 1, - "files": { - "editor": { - "preview_url": "/plugins/onlyoffice/?preview=1", - "edition_url": "/plugins/onlyoffice/", - "empty_files": [ - { - "url": "/plugins/onlyoffice/assets/empty.docx", - "filename": "Untitled.docx", - "name": "ONLYOFFICE Word Document" - }, - { - "url": "/plugins/onlyoffice/assets/empty.xlsx", - "filename": "Untitled.xlsx", - "name": "ONLYOFFICE Excel Document" - }, - { - "url": "/plugins/onlyoffice/assets/empty.pptx", - "filename": "Untitled.pptx", - "name": "ONLYOFFICE PowerPoint Document" - } - ], - "extensions": [ - "xlsx", - "pptx", - "docx", - "xls", - "ppt", - "doc", - "odt", - "ods", - "odp", - "txt", - "html", - "csv" - ] - } - } - } - }, - "identity": { - "code": "only_office", - "name": "Only Office", - "icon": "/plugins/onlyoffice/assets/logo.png", - "description": null, - "website": "http://twake.app/", - "categories": [], - "compatibility": ["tdrive"] - } - } - ] + "grid": [], + "plugins": [] }, "services": [ "auth",