X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/43ef6e8dfd4345262f7b974506261e0827bfecae..f92fbaf636d620a0092fff8b715be9a493547b4f:/data/config.default.php diff --git a/data/config.default.php b/data/config.default.php index 2e588fa..5b56fc7 100644 --- a/data/config.default.php +++ b/data/config.default.php @@ -2,15 +2,21 @@ $pharFile = \Phar::running(); if ($pharFile == '') { $phorkieDir = __DIR__ . '/../'; + $wwwDir = $phorkieDir . 'www/'; } else { //remove phar:// from the path $phorkieDir = dirname(substr($pharFile, 7)) . '/'; + $wwwDir = $phorkieDir; } $GLOBALS['phorkie']['cfg'] = array( 'debug' => false, - 'gitdir' => $phorkieDir . 'repos/git/', - 'workdir' => $phorkieDir . 'repos/work/', + 'git' => array( + 'public' => '%BASEURL%' . 'repos/git/', + 'private' => null, + ), + 'gitdir' => $wwwDir . 'repos/git/', + 'workdir' => $wwwDir . 'repos/work/', 'tpl' => __DIR__ . '/templates/', 'baseurl' => null, 'avatars' => true,