sh 网络挂接

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 网络挂接相关的知识,希望对你有一定的参考价值。

// install golang
sudo apt install golang-go

// download and build latest webhook version from github
sudo -E go get github.com/adnanh/webhook

// add go bin to PATH
export PATH=$PATH:~/go/bin

// run webhook, if hooks.json is in user root directory
$ webhook -hooks hooks.json -verbose

// create hooks.json file
sudo nano ./hooks.json

[
  {
    "id": "mcbav-webhook",
    "execute-command": "/var/scripts/updatehook.sh",
    "command-working-directory": "/var/www/dev/mcbav.com/public_html/",
    "pass-arguments-to-command":
    [
      {
        "source": "payload",
        "name": "actor.username"
      }
    ],
    "trigger-rule":
{
    "or":
    [
    {
      "match":
      {
        "type": "ip-whitelist",
        "ip-range": "104.192.143.0/24"
      }
    },
    {
      "match":
      {
       "type": "ip-whitelist",
       "ip-range": "109.49.95.28"
      }
    }
    ]
  }
}
]


以上是关于sh 网络挂接的主要内容,如果未能解决你的问题,请参考以下文章

php WC-登录网络挂接,为阶note.php

php WC-登录网络挂接,为阶note.php

json FB-的Instagram-网络挂接 - 淋巴结 - 例如

车牌识别一体机二次开发

SAP-PS笔记通过BOM挂接项目下物料组件

SAP-PS笔记通过BOM挂接项目下物料组件