xaizek / rocketgit (License: AGPLv3+) (since 2018-12-09)
Light and fast Git hosting solution suitable to serve both as a hub or as a personal code storage with its tickets, pull requests, API and much more.
<root> / samples / config.php (a4020427bf8875407b1fee562bf4d58375b58269) (1,165B) (mode 100644) [raw]
<?php
// RocketGit configuration file

// Base
$rg_base = "/home/rocketgit";

// Base for repositories
$rg_base_repo = $rg_base . "/repositories";

// Database
$rg_sql = "user=rocketgit dbname=rocketgit";
$rg_sql_debug = 1;

// Session
$rg_session_time = 3600;

// Keys
$rg_keys_file = $rg_base . "/.ssh/authorized_keys";

// Scripts
$rg_scripts = "/usr/share/rocketgit";

// Allowed repo names (regular expression)
$rg_repo_allow = '/^[A-Za-z0-9_.-]*$/';

// Allowed repo name length
$rg_repo_max_len = 64;

// Allowed user names (regular expression)
$rg_user_allow = '/^[A-Za-z0-9_.-]*$/';

// Allowed user name length
$rg_user_min_len = 3;
$rg_user_max_len = 32;

// SSH parameters for authorized_keys
$rg_ssh_paras = "no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty";

// Random key that will be used for encription of the password for better security
$rg_pass_key = "reigjmn9483jfisendfhwefhefhesfuhfskhjukhtw4khfwkur";

// From what address we will send mails (forgot pass etc.)?
$rg_admin_name = "RocketGit Admin";
$rg_admin_email = "admin@site.tld";

// Set to 1 to allow any visitor to create an account
$rg_account_allow_creation = 1;

?>
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/rocketgit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master