From 239b1f8653d2269e85ce2d4c96d111725dca844d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 9 May 2024 16:16:49 +0200 Subject: [PATCH 1/6] Update systemd.service --- conf/systemd.service | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index a10e078..5b068e9 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,10 +7,11 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ -Environment=ETHERPAD_PRODUCTION=true +#Environment=ETHERPAD_PRODUCTION=true Environment="NODE_ENV=production" Environment="__YNH_NODE_LOAD_PATH__" -ExecStart=__INSTALL_DIR__/bin/run.sh +#ExecStart=__INSTALL_DIR__/bin/run.sh +ExecStart=pnpm run prod Restart=always # Sandboxing options to harden security From d206d20aaecb1e7201bf6ec7625df5bf3309083b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 9 May 2024 16:22:34 +0200 Subject: [PATCH 2/6] Update systemd.service --- conf/systemd.service | 2 -- 1 file changed, 2 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index 5b068e9..d2aa174 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,10 +7,8 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ -#Environment=ETHERPAD_PRODUCTION=true Environment="NODE_ENV=production" Environment="__YNH_NODE_LOAD_PATH__" -#ExecStart=__INSTALL_DIR__/bin/run.sh ExecStart=pnpm run prod Restart=always From 9abb71393cb2310f4c4218b15a169f9ef18694bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 9 May 2024 16:34:08 +0200 Subject: [PATCH 3/6] Update settings.json --- conf/settings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/settings.json b/conf/settings.json index 7941a35..66cd2c2 100644 --- a/conf/settings.json +++ b/conf/settings.json @@ -265,7 +265,7 @@ * This will improve the loading performance massively, but makes it difficult * to debug the javascript/css */ - "minify": true, + "minify": false, /* * How long may clients use served javascript code (in seconds)? From 46d1de20a24d8c295bc5c91a94338a6538d7fe5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 9 May 2024 16:44:29 +0200 Subject: [PATCH 4/6] Update settings.json --- conf/settings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/settings.json b/conf/settings.json index 66cd2c2..7941a35 100644 --- a/conf/settings.json +++ b/conf/settings.json @@ -265,7 +265,7 @@ * This will improve the loading performance massively, but makes it difficult * to debug the javascript/css */ - "minify": false, + "minify": true, /* * How long may clients use served javascript code (in seconds)? From 0ab95a89b1773d4e66dcc251561c96e2fa90dbf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 9 May 2024 18:29:40 +0200 Subject: [PATCH 5/6] Update settings.json --- conf/settings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/settings.json b/conf/settings.json index 7941a35..a131657 100644 --- a/conf/settings.json +++ b/conf/settings.json @@ -504,7 +504,7 @@ /* * Restrict socket.io transport methods */ - "socketTransportProtocols" : ["xhr-polling", "jsonp-polling", "htmlfile"], + "socketTransportProtocols" : ["websocket", "polling"], "socketIo": { /* From 3c30c09b274c09cfc04f77f7758105e95d009932 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 9 May 2024 18:31:11 +0200 Subject: [PATCH 6/6] Update systemd.service --- conf/systemd.service | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/systemd.service b/conf/systemd.service index d2aa174..559f1e1 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,9 +7,11 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ +Environment=ETHERPAD_PRODUCTION=true Environment="NODE_ENV=production" Environment="__YNH_NODE_LOAD_PATH__" -ExecStart=pnpm run prod +ExecStart=__INSTALL_DIR__/bin/run.sh +#ExecStart=pnpm run prod Restart=always # Sandboxing options to harden security