X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=README.md;h=6c3c7925b48ce39e6ad5268f100b05588e9710cd;hb=HEAD;hp=9c604aa6c4fc39ec9bbcbcc0d29d1dd770f29378;hpb=3ce45fbfea1a087efac8ce05a8625919cccabe97;p=m6w6%2Fgh-mirror diff --git a/README.md b/README.md index 9c604aa..6c3c792 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,15 @@ Simple PHP webhook to mirror github repositories. ## Requirements -* [pecl/http](/m6w6/ext-http) +* [pecl/http](https://github.com/m6w6/ext-http) + +## Configuration + +```php +$mirror = getenv("mirror") ?: "/var/github/mirror"; +$secret = getenv("secret") ?: trim(file_get_contents("$mirror/.secret")); +$owners = explode(",", getenv("owners") ?: trim(file_get_contents("$mirror/.owners"))); +``` ## License