{"id":24213525,"url":"https://github.com/sea5kg/webhook-handler","last_synced_at":"2026-05-30T21:31:48.162Z","repository":{"id":53557156,"uuid":"166463808","full_name":"sea5kg/webhook-handler","owner":"sea5kg","description":"webhook-handler service ","archived":false,"fork":false,"pushed_at":"2021-04-08T03:05:52.000Z","size":445,"stargazers_count":2,"open_issues_count":15,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-11T09:40:46.018Z","etag":null,"topics":["cpp","service","webhook","webhook-handler"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sea5kg.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-18T19:44:19.000Z","updated_at":"2023-08-26T12:57:40.000Z","dependencies_parsed_at":"2022-09-21T12:44:03.265Z","dependency_job_id":null,"html_url":"https://github.com/sea5kg/webhook-handler","commit_stats":null,"previous_names":["sea5kg/webhook-handler"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sea5kg%2Fwebhook-handler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sea5kg%2Fwebhook-handler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sea5kg%2Fwebhook-handler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sea5kg%2Fwebhook-handler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sea5kg","download_url":"https://codeload.github.com/sea5kg/webhook-handler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241703462,"owners_count":20006179,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","service","webhook","webhook-handler"],"created_at":"2025-01-14T03:10:46.342Z","updated_at":"2026-05-30T21:31:48.156Z","avatar_url":"https://github.com/sea5kg.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# webhook-handler\n\nHTTP endpoints (hooks) - no ssl configuration (use a http-server with proxy)\n\n\u003c!-- \nLook here https://github.com/topics/webhook\n--\u003e\n\n[![Build Status](https://api.travis-ci.com/sea-kg/webhook-handler.svg?branch=master)](https://travis-ci.com/sea-kg/webhook-handler.svg) [![Github Stars](https://img.shields.io/github/stars/sea-kg/webhook-handler.svg?label=github%20%E2%98%85)](https://github.com/sea-kg/webhook-handler) [![Github Stars](https://img.shields.io/github/contributors/sea-kg/webhook-handler.svg)](https://github.com/sea-kg/webhook-handler) [![Github Forks](https://img.shields.io/github/forks/sea-kg/webhook-handler.svg?label=github%20forks)](https://github.com/sea-kg/webhook-handler/network/members) [![Total alerts](https://img.shields.io/lgtm/alerts/g/sea-kg/webhook-handler.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/sea-kg/webhook-handler/alerts/) [![Language grade: C/C++](https://img.shields.io/lgtm/grade/cpp/g/sea-kg/webhook-handler.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/sea-kg/webhook-handler/context:cpp)\n\n## Install\n\n[Ubuntu. PPA](https://launchpad.net/~sea5kg/+archive/ubuntu/webhook-handler)\n\n## Build on debian/ubuntu\n\nInstall requriments\n```\n$ apt-get -y update \u0026\u0026 apt-get install -y \\\n    make cmake \\\n    g++ \\\n    pkg-config\n```\n\nBuild\n```\n$ ./clean.sh \u0026\u0026 ./build_simple.sh\n```\n\n## Run\n\n```\n./webhook-handler --dir ./data start\n```\n\n## Configuration examples\n\nFile ./data/webhook-handler-conf.yml (or server will try search in /etc/webhook-handler):\n\n```yaml\n# server configuration\nserver:\n  port: 8002\n  wait-seconds-between-run-scripts: 60\n  max-script-threads: 1\n  max-deque: 100\n  allow-status-page: yes\n  status-page-url-path: \"/wh/status\" # will work if 'allow-status-page: yes'\n  log-dir: \"./logs\"\n```\n\nWhere\n\n* `server/port` - number, web port (default 8002)\n* `server/allow-status-page` - boolean, enable or disable status page (default: no)\n* `server/status-page-url-path` - string, path to page with status of server (default: \"/wh/status\")\n* `server/log-dir` - string, path to log directory (default: \"/var/log/webhook-handler/\")\n* `server/max-script-threads` - number, max count of threads for handling webhooks\n* `server/wait-seconds-between-run-scripts` - number, \n* `server/max-deque` - number, max value of possible webhooks handlers\n\n\n* `webhook-handlers/%webhookid%/commands` - list of commands to execute (Variables: %WEBHOOK_DATA_FILE_PATH% - path to file with income data with webhooks)\n\nFile ./data/%dir%/webhook.conf:\n\n```\nid = %webhookid%\nscript_path = ./rebuild.sh\nscript_wait_in_sec = 600\nenabled = yes\n```\n\n* id - unique id of webhook (replace on randoms string [A-Za-z0-9])\n* script_path - path to script, relative\n* script_wait_in_sec - how much time wait\n\n\nAfter start server will be here\n\nunique id of webhook, \nWebhook will like http://localhost:%port%/%webhook-url-path%\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsea5kg%2Fwebhook-handler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsea5kg%2Fwebhook-handler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsea5kg%2Fwebhook-handler/lists"}