From ba532be4f39ce25a83420d32b1c1979694902b38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Jaenisch?= Date: Mon, 26 Jun 2023 15:26:08 +0200 Subject: [PATCH] feat: Add SystemD service file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I am running Keyoxide-Web on baremetal on my VPS. I cloned the repo into `/opt/` and `adduser` a dedicated user for it. Things you might want to adjust also is the `PORT` value. Fixes #48. Signed-off-by: André Jaenisch --- keyoxide-web.service | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 keyoxide-web.service diff --git a/keyoxide-web.service b/keyoxide-web.service new file mode 100644 index 0000000..d85fd44 --- /dev/null +++ b/keyoxide-web.service @@ -0,0 +1,16 @@ +[Unit] +Description=Keyoxide (Your online passport) +After=syslog.target +After=network.target + +[Service] +User=keyoxide +Group=www-data +WorkingDirectory=/opt/keyoxide-web/ +ExecStart=/usr/bin/node /opt/keyoxide-web/src/index.js +Restart=always +RestartSec=2s +Environment=PORT=5000 + +[Install] +WantedBy=multi-user.target