kaikai_test/deploy/systemd/video-hotness.service.example
2026-05-14 19:00:00 +08:00

19 lines
433 B
Plaintext

[Unit]
Description=Video Hotness Collection Service
After=network.target
[Service]
Type=simple
WorkingDirectory=/www/video-hotness
ExecStart=/usr/bin/node /www/video-hotness/src/server.js
Restart=always
RestartSec=3
Environment=NODE_ENV=production
Environment=HOST=0.0.0.0
Environment=PORT=3000
Environment=HOTNESS_ACCESS_PASSWORD=CHANGE_ME
Environment=HOTNESS_DATA_DIR=/www/video-hotness/data
[Install]
WantedBy=multi-user.target