From b815eb68c3209c7d30ee4db4537c8913256cb72d Mon Sep 17 00:00:00 2001 From: Limezy Date: Fri, 30 Sep 2022 10:09:49 +0700 Subject: [PATCH] Updates --- conf/nginx.conf | 5 ++--- doc/DISCLAIMER.md | 6 ++++++ manifest.json | 12 +++++------- scripts/install | 2 +- 4 files changed, 14 insertions(+), 11 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index e9d0f95..8cfe104 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,7 +1,6 @@ -#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; -location __PATH__/ { +location / { - proxy_pass http://127.0.0.1:__PORT__; + proxy_pass http://127.0.0.1:__PORT__/; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; diff --git a/doc/DISCLAIMER.md b/doc/DISCLAIMER.md index cd142d2..f3285d8 100644 --- a/doc/DISCLAIMER.md +++ b/doc/DISCLAIMER.md @@ -1,9 +1,15 @@ +* TLDraw can't be installed on a subpath, and needs a fully dedicated domain + * The multiplayer mode requires Liveblocks API keys (Public and Secret) * You can get some for free at liveblocks.io * Be **very careful** though, and keep in mind that by doing so, all your multiplayer rooms data will be stored on livestocks.io SaaS servers, and **NOT** on your server * Multiplayer mode is completely optional and you don't have to use it * If API keys are not provided, it will be automatically deactivated +* TLDraw will not take a lot of disk or memory space while running. + * **However**, you will need at least 2.5GB of RAM and 5GB of disk space during installation time + * The build can be quite long, be patient ! + * TLDraw offers all functionnalities (including multiplayer) for free at tldraw.com * However, they have restricted the use of multiplayer mode within an iFrame, which could be a problem * TLDraw Yunohost app is patching that restriction so that you can use multiplayer mode within an iFrame as before diff --git a/manifest.json b/manifest.json index c44634d..73aa4e2 100644 --- a/manifest.json +++ b/manifest.json @@ -30,13 +30,11 @@ "install": [ { "name": "domain", - "type": "domain" - }, - { - "name": "path", - "type": "path", - "example": "/example", - "default": "/example" + "type": "domain", + "help": { + "en": "TLDraw needs a fully dedicated domain", + "fr": "TLDraw nécessite une installation à la racine du domaine" + } }, { "name": "is_public", diff --git a/scripts/install b/scripts/install index 15ab14d..c2cfb2a 100755 --- a/scripts/install +++ b/scripts/install @@ -23,7 +23,7 @@ ynh_abort_if_errors #================================================= domain=$YNH_APP_ARG_DOMAIN -path_url=$YNH_APP_ARG_PATH +path_url="/" is_public=$YNH_APP_ARG_IS_PUBLIC publickey=$YNH_APP_ARG_PUBLICKEY secretkey=$YNH_APP_ARG_SECRETKEY