From 60272efae3076b8298eb264fa3aacf5bd130f9b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 29 May 2024 17:48:13 +0200 Subject: [PATCH] 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 deb26df..7ec4693 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -8,10 +8,12 @@ User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__ Environment=PATH=__YNH_NODE_LOAD_PATH__ -Environment=NODE_ENV=production +#Environment=NODE_ENV=production Environment='PWD="__INSTALL_DIR__"' ExecStart=__YNH_NPM__ start +#ExecStart=__YNH_NPM__ __INSTALL_DIR__/server.js Restart=always +LimitNOFILE=1000000 # Sandboxing options to harden security # Depending on specificities of your service/app, you may need to tweak these