72 lines
2.6 KiB
Plaintext
72 lines
2.6 KiB
Plaintext
<?php
|
|
|
|
/* Base URL path of this app. Use an empty string when deployed at / . */
|
|
|
|
# $url_base = '/php-git-server';
|
|
$url_base = '';
|
|
|
|
|
|
/* Interface language: 'en', 'zh', or empty to follow the browser. */
|
|
$language = '';
|
|
|
|
/*
|
|
* Application accounts and access tokens. Import schema.mysql.sql before
|
|
* enabling this section. Use a dedicated MySQL user with SELECT, INSERT,
|
|
* UPDATE and DELETE privileges on these tables; schema privileges are not
|
|
* required by the application.
|
|
*/
|
|
$auth = array(
|
|
'enabled' => TRUE,
|
|
'registration_enabled' => TRUE,
|
|
/* Exact, case-sensitive usernames. Add only existing trusted accounts. */
|
|
'administrators' => array(
|
|
// 'replace-with-existing-username',
|
|
),
|
|
/* Set to TRUE when HTTPS terminates at a trusted reverse proxy. */
|
|
// 'session_cookie_secure' => TRUE,
|
|
'database' => array(
|
|
'dsn' => 'mysql:host=127.0.0.1;port=3306;dbname=php_git_server;charset=utf8mb4',
|
|
'username' => 'php_git_server',
|
|
'password' => 'replace-with-a-long-random-password'));
|
|
|
|
/*
|
|
* Optional settings for repositories created from the home page.
|
|
* Repositories are always stored in this application's repos directory. It is
|
|
* created when missing and must be writable and searchable by the PHP process.
|
|
* Set this to array() to disable repository creation.
|
|
*/
|
|
$managed_repositories = array(
|
|
'options' => array(
|
|
'read' => TRUE,
|
|
'push' => 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.
|
|
* owner Account username allowed to push. Default: NULL.
|
|
* private Require an access token for reads. Default: FALSE.
|
|
* 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,
|
|
'owner' => NULL,
|
|
'private' => FALSE)),
|
|
);
|