From b405973d443a55b85eb7a4ca65cecb4ae3af5c76 Mon Sep 17 00:00:00 2001 From: Andreas Rammhold Date: Mon, 5 Oct 2020 13:19:02 +0200 Subject: [PATCH] php: add README.md explaining the configuration It was lost in the `Not you: team` change. It probably makes sense to keep this documented as people involved in this project might change over time and sometimes memory can also be blurry :) --- php/README.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 php/README.md diff --git a/php/README.md b/php/README.md new file mode 100644 index 0000000..4bf1bac --- /dev/null +++ b/php/README.md @@ -0,0 +1,38 @@ +# Webhook Receiver + +This PHP code receives the GitHub webhook, checks them for integrity and publishes messages on rabbitmq. + + +## Configuration + +The code expects a `config.php` in it's parent directory. An example configuration looks like this: + +```php + true, + 'verify_peer_name' => true, + 'peer_name' => $host, + 'verify_depth' => 10, + 'ca_file' => '/etc/ssl/certs/ca-certificates.crt', + ), array( + 'connection_timeout' => $timeout, + ) + ); + return $connection; +} + +function gh_secret() { + return "github webhook secret"; +} +```