[Unit] Description=Yuji History - Zhengti Zhi (zhengquan-site) After=network.target [Service] Type=simple User=www-data Group=www-data WorkingDirectory=/opt/zhengquan-site/backend ExecStart=/usr/bin/node src/index.js Environment=NODE_ENV=production Environment=PORT=5180 Environment=HOST=127.0.0.1 Restart=always RestartSec=3 NoNewPrivileges=true PrivateTmp=true ProtectSystem=full ProtectHome=true [Install] WantedBy=multi-user.target