Files
php-git-server/config.php.sample
T

63 lines
2.2 KiB
Plaintext

<?php
/* Base URL path of this app. Use an empty string when deployed at / . */
# $url_base = '/php-git-server';
$url_base = '';
/* Git executable used by Smart HTTP when available. If it is unavailable,
* supported SHA-1 Smart HTTP operations run through the native PHP backend. */
$git_executable = 'git';
/*
* Optional directory for repositories created from the home page.
* The directory must already exist and be readable, writable and searchable by
* the PHP process, and should be reserved for this application.
* Set this to array() to disable repository creation.
*/
$managed_repositories = array(
'path' => './repos',
'require_auth' => TRUE,
/* Uncomment when TLS ends at a trusted reverse proxy. */
// 'session_cookie_secure' => TRUE,
'options' => array(
'read' => TRUE,
'push' => TRUE,
'require_auth' => TRUE,
'branches' => TRUE,
'tags' => TRUE,
'other_refs' => FALSE,
'allow_non_fast_forward' => FALSE,
'max_object_bytes' => 268435456,
'max_pack_objects' => 100000,
'max_request_bytes' => 0));
/*
* Repository options:
*
* read Allow clone, fetch and pull. Default: TRUE.
* push Allow Smart HTTP push. Default: FALSE.
* require_auth Require a trusted REMOTE_USER for push. Default: TRUE.
* branches Allow push updates under refs/heads/. Default: TRUE.
* tags Allow push updates under refs/tags/. Default: TRUE.
* other_refs Allow push updates to other ref namespaces. Default: FALSE.
* allow_non_fast_forward Allow forced branch rewrites. Default: FALSE.
* max_object_bytes Maximum inflated object size for native PHP push.
* max_pack_objects Maximum object count in a native PHP push pack.
* max_request_bytes Maximum buffered push request size; 0 is unlimited.
*/
$repos = array(
array('/php-git-server.git', '.git', array(
'read' => TRUE,
'push' => FALSE)),
array('/wiki.git', './repos/wiki.git', array(
'read' => TRUE,
'push' => TRUE,
'require_auth' => TRUE,
'branches' => TRUE,
'tags' => TRUE,
'other_refs' => FALSE,
'max_request_bytes' => 0)));