[Unit] Description=NexusGate node agent After=network-online.target nexusgate-sing-box.service Wants=network-online.target [Service] Type=simple EnvironmentFile=/etc/nexusgate/agent.env ExecStart=/usr/bin/node --max-old-space-size=64 --optimize-for-size /opt/nexusgate-agent/agent.js Restart=always RestartSec=5 NoNewPrivileges=true PrivateTmp=true ProtectHome=true ProtectSystem=strict ReadWritePaths=/etc/nexusgate /var/log/nexusgate [Install] WantedBy=multi-user.target