index.js
已废弃.index2.js
需要配置的内容:
// 在Webhooks中设定的secret
var secret = ''
// 在Webhooks中设定的Payload URL
var url = ''
...
// 监听地址端口
}).listen(6606, '127.0.0.1');
npm install
node index2.js
[Unit]
Description=GithubWebhookService
[Service]
WorkingDirectory=/home/webhook
ExecStart=/usr/bin/node path/to/index2.js
[Install]
WantedBy=multi-user.target