DAILY DOCDAILY DOC
Rust
Node
Notes
Ubuntu
Leetcode
  • it-tools
  • excalidraw
  • linux-command
Rust
Node
Notes
Ubuntu
Leetcode
  • it-tools
  • excalidraw
  • linux-command
  • linux
  • bash alias
  • chmod
  • linux useful command
  • date
  • extract translation from git diff
  • fail2ban
  • globbing
  • localhost
  • mail
  • memo 内存测试
  • nohup(no hang up)
  • setup env
  • ssh

    • ssh 教程
    • github clone
    • ssh.localhost.run 端口转发
    • ssh 安全
  • systemd service
  • 分析ubuntu系统登录日志文件
  • vpn

    • vpn 教程
    • Algo
    • clashX
    • firezone
    • lantern
    • pac 代理配置
    • Setup vpn
    • shadowsocks
    • VPN
    • VPN 速度优化
    • wireguard cron
    • 修改wireguard端口
  • webhook

webhook

install

apt-get install webhook
touch /var/www/webhook/hook.json

systemd

注册启动系统服务

touch /etc/systemd/system/webhook.service
systemctl enable webhook
systemctl start webhook
webhook.service
[Unit]
Description=Webhook Service
After=network.target

[Service]
ExecStart=/usr/bin/webhook -hooks /var/www/webhook/hook.json -hotreload --verbose
Restart=always
RestartSec=10
User=www-data
Group=www-data

[Install]
WantedBy=multi-user.target

pm2

pm2 start webhook.sh

webhook -hooks /var/webhook/hook.yaml -verbose -hotreload -header 'Access-Control-Allow-Origin=*' -header 'Access-Control-Allow-Methods=GET,POST,OPTIONS' -header 'Access-Control-Allow-Headers=Origin,X-Requested-With,Content-Type,Accept,Authorization'

Refer deploy-using-github-webhooks/

Last Updated:
Contributors: rosendo