smol_webhook 0.1.0

A small github webhook server
Documentation

Smol webhook

A small rust crate project that is based on the webserver project in the rust book.

This script will listen to the github webhook for a push event. It will check branch and it will execute a script placed near the executable.

Configuration

This application could be configured by using environment variables.

  • SMOL_WEBHOOK_IP ip_addr - IPv4 to listen. default=127.0.0.1
  • SMOL_WEBHOOK_PORT port_number - port to listen. default=7878
  • SMOL_WEBHOOK_BRANCH branch_name - a branch name that this webhook will watch on. default=master
  • SMOL_WEBHOOK_SCRIPT script_path - path of the executable script. default=./test.sh
  • SMOL_WEBHOOK_KEY secret_key - secret key to check in the webhook event. default=""(empty string)