diff --git a/hooks/templates/inc_config.php.erb b/hooks/templates/inc_config.php.erb index 8e0c5444c3b6c5dcdff13b8cf3157dd409b28832..a7198aab85e5097f4e739be7481890ba40e8ad27 100644 --- a/hooks/templates/inc_config.php.erb +++ b/hooks/templates/inc_config.php.erb @@ -1,7 +1,13 @@ <?php return array( + + // define a secret aka pi key 'apikey'=>'@replace["apikey"]', - 'cutfromrequest'=>'^/packages', + + // local directory of synched ci packages 'packagedir'=>dirname(__DIR__).'/packages', + + // allow directory listing when accessing a path of a package + 'showdircontent'=>true, ); diff --git a/readme.md b/readme.md index 469a2ab6babe89d1e3ebefdab281cea31d81ffb9..0186361ca9804af87a18ad53867f2677d6169b9a 100644 --- a/readme.md +++ b/readme.md @@ -61,9 +61,14 @@ set a secret behind key apikey. ```php return array( + // define a secret aka pi key 'apikey'=>'our-package-server-secret', - 'cutfromrequest'=>'^/packages', + + // local directory of synched ci packages 'packagedir'=>dirname(__DIR__).'/packages', + + // allow directory listing when accessing a path of a package + 'showdircontent'=>true, ); ```