<?php
// GitGram configuration
define('SITE_TITLE', 'GitGram');
define('SITE_URL', ''); // leave empty for auto-detect; or set e.g. 'https://git.example.com'
// Paths (absolute or relative to this file)
define('REPO_PATH', __DIR__ . '/repos');
define('DATA_PATH', __DIR__ . '/data');
// Git binary — 'git' works on most hosts; try '/usr/bin/git' if not
define('GIT_BIN', 'git');
// git-http-backend locations to try (in order)
define('GIT_HTTP_BACKEND_PATHS', [
'/usr/lib/git-core/git-http-backend', // Debian/Ubuntu
'/usr/libexec/git-core/git-http-backend', // RHEL/CentOS
'/usr/local/libexec/git-core/git-http-backend', // FreeBSD/cPanel
]);
// Avatar storage (must be web-accessible)
define('AVATAR_PATH', __DIR__ . '/avatars');
// Number of commits shown on repo home page
define('COMMIT_PREVIEW', 10);
// Admin password hash — change this!
// Generate: php -r "echo password_hash('yourpassword', PASSWORD_DEFAULT);"
define('ADMIN_HASH', '$2y$12$placeholder.change.me.now.aaaaaaaaaaaaaaaaaaaaaa');