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.
Commit 96f8542619d772c29b9bb07e4a066b7302d6f35c

Just some comments
Author: Catalin(ux) M. BOIE
Author date (UTC): 2016-03-11 17:25
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2016-03-11 17:25
Parent(s): 3e34a304a204792b1a1a0b403c88e3164441066c
Signing key:
Tree: 800bf0b989615e752c1d9fbfca23d5f06b90f7f2
File Lines added Lines deleted
inc/token.inc.php 1 0
inc/user.inc.php 3 2
samples/rg.conf 1 1
File inc/token.inc.php changed (mode: 100644) (index be41c1f..2d3b4db)
... ... function rg_token_get($db, $rg, $tag)
232 232 if ($sign_key === FALSE) if ($sign_key === FALSE)
233 233 break; break;
234 234
235 // Add a random string to protect against BREACH attack
235 236 $rand = rg_id(16); $rand = rg_id(16);
236 237 $data = $rand . $rg['sid'] . $rg['ua'] . $tag; $data = $rand . $rg['sid'] . $rg['ua'] . $tag;
237 238 $sign = hash_hmac('sha512', $data, $sign_key); $sign = hash_hmac('sha512', $data, $sign_key);
File inc/user.inc.php changed (mode: 100644) (index 35380d3..47aedee)
... ... function rg_user_set_session_cookie($db, $uid, $sess_time, $lock_ip)
839 839 rg_sess_add($db, $uid, $sid, $sess_time, $lock_ip); rg_sess_add($db, $uid, $sid, $sess_time, $lock_ip);
840 840 else else
841 841 $sid = "X" . $sid; $sid = "X" . $sid;
842 setcookie("sid", $sid, 0, "/", $_SERVER['SERVER_NAME'],
843 $secure, TRUE /* httponly */);
842 if (isset($_SERVER['SERVER_NAME']))
843 setcookie('sid', $sid, 0, '/', $_SERVER['SERVER_NAME'],
844 $secure, TRUE /*httponly*/);
844 845
845 846 rg_log_exit(); rg_log_exit();
846 847 return $sid; return $sid;
File samples/rg.conf changed (mode: 100644) (index fce36f9..d594086)
84 84 # all rest # all rest
85 85 RewriteRule (.*) /index.php?rwe=1&vv=$1 [last,qsappend] RewriteRule (.*) /index.php?rwe=1&vv=$1 [last,qsappend]
86 86
87 # Security
87 # Security (ClickJacking)
88 88 <IfModule mod_headers.c> <IfModule mod_headers.c>
89 89 Header always append X-Frame-Options DENY Header always append X-Frame-Options DENY
90 90 # Add this for SSL # Add this for SSL
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