# systemd unit for a plain VPS install (no Docker). Copy to /etc/systemd/system/namtrace.service [Unit] Description=NamTrace server After=network.target [Service] Type=simple User=namtrace WorkingDirectory=/opt/namtrace Environment=PORT=8080 Environment=DATA_DIR=/opt/namtrace/data Environment=TRUST_PROXY=1 ExecStart=/usr/bin/node /opt/namtrace/server.js Restart=always RestartSec=3 [Install] WantedBy=multi-user.target