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