List of commits:
Subject Hash Author Date (UTC)
Always set rg[hostname] - used also for ssh connections for TOTP 1a7a693617ac521967b8df73245cd704004b76b5 Catalin(ux) M. BOIE 2019-11-06 04:10:59
White space corrections 92a1b944842439b9476a954daa2a65c5acfca85c Catalin(ux) M. BOIE 2019-11-05 18:52:08
README updates b57e3765de34c5e4ed7afa8384f24b6337352b17 Catalin(ux) M. BOIE 2019-11-01 03:18:48
download page updates 0185da40f7b2779c886b9c3e67b10fe69b1b112c Catalin(ux) M. BOIE 2019-11-01 03:13:14
css: small updates 59ae919c798d64f74ed8bdeb08241e4e76840afe Catalin(ux) M. BOIE 2019-10-30 21:33:37
comparison: updated pagespeed and other changes 3f423b7b0a98c0342e5d855c254812d37a03a5b8 Catalin(ux) M. BOIE 2019-10-30 21:27:20
html: specify logo size to avoid re-render b2ce82a59029e93438e9e6792f6aa6f7e44741c7 Catalin(ux) M. BOIE 2019-10-30 21:15:10
git(rocketgit_t) needs to map rocketgit_var_t files 2b10062807dd4f478e136aea1c239e117b46caed Catalin(ux) M. BOIE 2019-10-30 21:02:18
css: gravatar is displayed as block to get rid of below extra space b02dc575be2ccd8b99eff7509f8a7e62c57654a6 Catalin(ux) M. BOIE 2019-10-30 20:58:03
SELinux: more rights added 2e71284e917886f9ef2b0dcb005f63ff8153df1f Catalin(ux) M. BOIE 2019-10-30 17:30:08
We need also php-json for API f53e706bea1f29bb678ca39c2295ac8354af76d8 Catalin(ux) M. BOIE 2019-10-30 17:26:35
Small changes in several places 357571a8a8821b82f072bf83808342693e9a649c Catalin(ux) M. BOIE 2019-10-30 17:13:29
SELinux: php tries to map the config file 3e2115c88e7b424171060f14aa2cf4c856bf5e58 Catalin(ux) M. BOIE 2019-10-30 15:09:12
Removed comments from php-fpm.conf 46f4a76b3d0a37b3f6f2bdef8b749eca84246cce Catalin(ux) M. BOIE 2019-10-29 15:14:18
pool sample: removed comments 53364f40abda9cdab63a961e230bedb3c2dfcb67 Catalin(ux) M. BOIE 2019-10-29 15:12:01
Adapt spec file to Fedora 31 599df94445a9396fdc1cc0cc43df50838db973ae Catalin(ux) M. BOIE 2019-10-29 13:59:05
Cosmetic 69abfb69054c86d3b8136a83f3929831b2f75afe Catalin(ux) M. BOIE 2019-10-29 13:56:48
selinux: we need also map for httpd_t -> rocketgit_usr_t 6f4161abd283b4b83e5f3655d47187d9daf37a6f Catalin(ux) M. BOIE 2019-10-29 03:44:20
.spec update f5b7c9777f6e0f9e5b669c45abf5420bf0da80b8 Catalin(ux) M. BOIE 2019-10-26 05:35:45
Update version to 0.71 6f66dc4dda14cc3b171b91cd1feb28a762cf469a Catalin(ux) M. BOIE 2019-10-26 05:32:56
Commit 1a7a693617ac521967b8df73245cd704004b76b5 - Always set rg[hostname] - used also for ssh connections for TOTP
Author: Catalin(ux) M. BOIE
Author date (UTC): 2019-11-06 04:10
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2019-11-06 04:10
Parent(s): 92a1b944842439b9476a954daa2a65c5acfca85c
Signer:
Signing key:
Signing status: N
Tree: 6c563d5e8ca40f7f79cb50d458b17fa2f6e095a6
File Lines added Lines deleted
inc/totp.inc.php 4 4
scripts/cron.php 5 4
scripts/remote.php 5 4
File inc/totp.inc.php changed (mode: 100644) (index a7d5d1a..733c5cf)
... ... function rg_totp_verify($key, $ts, $token)
150 150 */ */
151 151 function rg_totp_png($secret) function rg_totp_png($secret)
152 152 { {
153 global $rg_ssh_host;
153 global $rg;
154 154
155 155 $extra = urlencode(gmdate('Y-m-d H:i')); $extra = urlencode(gmdate('Y-m-d H:i'));
156 156 $secret = urlencode($secret); $secret = urlencode($secret);
157 $issuer = urlencode($rg_ssh_host);
157 $issuer = urlencode($rg['hostname']);
158 158 $cmd = "qrencode -o - --level=H --type=PNG 'otpauth://totp/$extra?secret=$secret&issuer=$issuer'"; $cmd = "qrencode -o - --level=H --type=PNG 'otpauth://totp/$extra?secret=$secret&issuer=$issuer'";
159 159 $a = rg_exec($cmd, '', FALSE, FALSE, FALSE); $a = rg_exec($cmd, '', FALSE, FALSE, FALSE);
160 160 if ($a['ok'] != 1) if ($a['ok'] != 1)
 
... ... function rg_totp_png($secret)
168 168 */ */
169 169 function rg_totp_text($secret) function rg_totp_text($secret)
170 170 { {
171 global $rg_ssh_host;
171 global $rg;
172 172
173 173 $extra = urlencode(gmdate('Y-m-d H:i')); $extra = urlencode(gmdate('Y-m-d H:i'));
174 174 $secret = urlencode($secret); $secret = urlencode($secret);
175 $issuer = urlencode($rg_ssh_host);
175 $issuer = urlencode($rg['hostname']);
176 176 $cmd = "qrencode -o - --level=M --margin=2 --type=UTF8" $cmd = "qrencode -o - --level=M --margin=2 --type=UTF8"
177 177 . " 'otpauth://totp/$extra?secret=$secret&issuer=$issuer'"; . " 'otpauth://totp/$extra?secret=$secret&issuer=$issuer'";
178 178 $a = rg_exec($cmd, '', FALSE, FALSE, FALSE); $a = rg_exec($cmd, '', FALSE, FALSE, FALSE);
File scripts/cron.php changed (mode: 100644) (index 471e832..3f1bf33)
... ... if (empty($first_install)) {
53 53 exit(0); exit(0);
54 54 } }
55 55
56 $hostname = rg_state_get($db, 'hostname');
57 $http_allow = rg_state_get($db, 'http_allow');
58 $https_allow = rg_state_get($db, 'https_allow');
59 rg_base_url_build($hostname, $http_allow, $https_allow);
56 $rg['hostname'] = rg_state_get($db, 'hostname');
57 $rg['http_allow'] = rg_state_get($db, 'http_allow');
58 $rg['https_allow'] = rg_state_get($db, 'https_allow');
59 rg_base_url_build($rg['hostname'], $rg['http_allow'], $rg['https_allow']);
60 $rg['base_url'] = rg_base_url();
60 61 rg_log('DEBUG: base_url=' . rg_base_url()); rg_log('DEBUG: base_url=' . rg_base_url());
61 62
62 63 if (gmdate("Hi") == "0105") { if (gmdate("Hi") == "0105") {
File scripts/remote.php changed (mode: 100644) (index efda942..5a46ced)
... ... rg_cache_get('state');
76 76 if (rg_struct_ok($db) === FALSE) if (rg_struct_ok($db) === FALSE)
77 77 fatal("We are in a short maintenance window. Try again later."); fatal("We are in a short maintenance window. Try again later.");
78 78
79 $hostname = rg_state_get($db, 'hostname');
80 $http_allow = rg_state_get($db, 'http_allow');
81 $https_allow = rg_state_get($db, 'https_allow');
82 rg_base_url_build($hostname, $http_allow, $https_allow);
79 $rg['hostname'] = rg_state_get($db, 'hostname');
80 $rg['http_allow'] = rg_state_get($db, 'http_allow');
81 $rg['https_allow'] = rg_state_get($db, 'https_allow');
82 rg_base_url_build($rg['hostname'], $rg['http_allow'], $rg['https_allow']);
83 $rg['base_url'] = rg_base_url();
83 84 rg_log('DEBUG: base_url=' . rg_base_url()); rg_log('DEBUG: base_url=' . rg_base_url());
84 85
85 86 $login_ui = array('uid' => 0, $login_ui = array('uid' => 0,
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://rocketgit.com/user/catalinux/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/rocketgit

Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/rocketgit

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