keyoxide-web/keyoxide-web.service
André Jaenisch ba532be4f3
feat: Add SystemD service file
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 <andre.jaenisch@posteo.de>
2024-02-13 17:24:43 +01:00

16 lines
312 B
Desktop File

[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