Skip to content

Installing the web-hook service

Web-hooks are a notification system: upon an action, a system makes an HTTP POST request with some data, to notify another system that the action has occurred. See Webhook on Wikipedia for more information, and Webhooks for how a project uses them.

This service is the Myxo service webhooks, which runs the jobs that call the web-hooks. Its code ships with the sourcelab package. Place it in a process of the layout, /etc/sourcelab/layout.toml, alone or with other services.

Configure your system

  • Install the service.

    From an RPM:

    dnf install sourcelab-webhook
    

    From the sources, copy the systemd unit:

    cp files/sourcelab_webhook.service /etc/systemd/system/sourcelab_webhook.service
    

    The unit runs myxo serve /etc/sourcelab/layout.toml webhooks, the layout's process webhooks, as the git user, with SOURCELAB_CONFIG=/etc/sourcelab/sourcelab.cfg. Adjust these if your installation differs.

  • Activate the service and ensure it's started upon boot:

    systemctl enable --now sourcelab_webhook
    

Note

We ship a systemd unit for sourcelab_webhook, but we welcome patches for other init systems.