parse-dashboard.service 758 B

1234567891011121314151617181920212223242526
  1. [Unit]
  2. Description=Jianhen VOC Parse Dashboard
  3. After=network-online.target pm2-voc.service
  4. Wants=network-online.target
  5. Requires=pm2-voc.service
  6. [Service]
  7. Type=simple
  8. User=parse-dashboard
  9. Group=parse-dashboard
  10. WorkingDirectory=/opt/parse-dashboard
  11. EnvironmentFile=/etc/parse-dashboard/dashboard.env
  12. ExecStart=/opt/node22/bin/node /opt/parse-dashboard/node_modules/parse-dashboard/Parse-Dashboard/index.js --config /etc/parse-dashboard/config.json --host 127.0.0.1 --port 4040 --mountPath /dbadmin --trustProxy 1
  13. Restart=on-failure
  14. RestartSec=5
  15. NoNewPrivileges=true
  16. PrivateTmp=true
  17. ProtectSystem=strict
  18. ProtectHome=true
  19. ProtectKernelTunables=true
  20. ProtectKernelModules=true
  21. ProtectControlGroups=true
  22. RestrictSUIDSGID=true
  23. [Install]
  24. WantedBy=multi-user.target