[Unit] Description=CyberLux Next.js (binds 127.0.0.1:3000 for nginx/Tor) After=network-online.target tor.service nginx.service Wants=network-online.target tor.service nginx.service [Service] Type=simple # Use the account that owns the repo and ran ./start.sh (not root). # This unit only starts Next.js; Tor/nginx are expected to be configured already. User=REPLACE_ME Group=REPLACE_ME WorkingDirectory=/path/to/cyberlux Environment=NODE_ENV=production ExecStart=/usr/bin/npm run start:onion Restart=on-failure RestartSec=8 [Install] WantedBy=multi-user.target