/README (bac3d29eb9b0b903d361b6b18c7aab20f6ca93f1) (2998 bytes) (mode 100644) (type blob)
== About ==
. Website: http://kernel.embedromix.ro/us/
. Author: Catalin(ux) M. BOIE
. Description: Light and fast Git hosting solution
. Language: PHP
. Database: PostgreSQL
== Features ==
. No Java
. No Javascript
. Very little dependencies, all packaged in main-stream distributions
. SELinux friendly
. Very small
== Install ==
. Notes:
- It is recommended to NOT install rocketgit on a multiuser machine.
There are some things that should be fixed first. We are working on it.
. Prepare SELinux
# setsebool -P \
httpd_can_network_connect_db=on \
httpd_can_network_memcache=on \
httpd_can_sendmail=on
. Edit /etc/rocketgit/config.php
. Edit /etc/httpd/conf.d/rocketgit.conf
. Configure Apache
# systemctl enable httpd.service
# systemctl start httpd.service
. Activate sshd (for ssh:// access)
# systemctl enable sshd.service
# systemctl start sshd.service
. Activate xinetd (for git:// access)
# systemctl enable xinetd.service
# systemctl start xinetd.service
. Configure PostgreSQL server
# systemctl enable postgresql.service
# postgresql-setup initdb (TAKE CARE! YOU MAY DESTROY ALL YOUR DATA!)
# systemctl start postgresql.service
. Create a PostgreSQL user and database
# su - postgres
$ createuser -d -R -S rocketgit
$ createdb -O rocketgit rocketgit
. Allow access to PostgreSQL and restart:
Add the following lines, before wildcard matches, in pg_hba.conf:
local rocketgit rocketgit 127.0.0.1 trust
local rocketgit rocketgit ::1 trust
systemctl reload postgresql.service
Notes:
- Check also the config file and set correctly rg_sql string.
- If the web server and the db are not on the same host, you need to
replace 127.0.0.1/::1 with your "safe network". You may want to use
md5 for authentication. Also, you may want to change 'listen_addresses'
to '*'. You may also want to activate SSL. Check PostgreSQL manual.
. Mail
To be able to generate e-mails as other user, you have to:
For sendmail:
- Edit /etc/mail/trusted-users and add 'rocketgit' and 'apache'.
- Restart daemon: 'systemctl restart sendmail.service' (Fedora)
. Run instalation script
# php /usr/share/rocketgit/admin/init.php
. Edit firewall to permit port ssh, git, http and https
In /etc/sysconfig/iptables (IPv4) or ip6tables (IPv6), add something
like this:
-A INPUT -m tcp -p tcp --dport ssh -j ACCEPT
-A INPUT -m tcp -p tcp --dport git -j ACCEPT
-A INPUT -m tcp -p tcp --dport http -j ACCEPT
-A INPUT -m tcp -p tcp --dport https -j ACCEPT
. PHP
Adjust php.ini to allow enough RAM and execution time.
== Thanks ==
. Special thanks to my family that supported me in this project.
. Special thanks to my brother that contributed brain and time to this project.
. Special thanks to git people for the best tool to manage the sources.
. Special thanks to a lot of people that came with suggestions.
. Special thanks to gitosys, Gitorious and other projects from where I learned
things.
. See AUTHORS file for all people contributed to this project.
Mode |
Type |
Size |
Ref |
File |
100644 |
blob |
9 |
f3c7a7c5da68804a1bdf391127ba34aed33c3cca |
.exclude |
100644 |
blob |
96 |
5ca30a3adc6cef38f30cbc1e111154c2b5154229 |
.gitignore |
100644 |
blob |
179 |
df01c6306393e7a8b180470b4beb8831e6c421e0 |
AUTHORS |
100644 |
blob |
1131 |
c4293c8abbcc8446af598c33486e1ec4561388d4 |
Certs.txt |
100644 |
blob |
363 |
d4c20576e85575b16d877a289679fd5bcf5f2ed2 |
Compare.txt |
100644 |
blob |
35147 |
94a9ed024d3859793618152ea559a168bbcbb5e2 |
LICENSE |
100644 |
blob |
2135 |
01d625ed60feef5ebf6fe48f970adc8f00bc4eb9 |
Makefile.in |
100644 |
blob |
2998 |
bac3d29eb9b0b903d361b6b18c7aab20f6ca93f1 |
README |
100644 |
blob |
42501 |
4b379bb9e4d6e405f14e99663e178a02989f4b01 |
TODO |
100644 |
blob |
1294 |
f22911eb777f0695fcf81ad686eac133eb11fcc4 |
TODO-plans |
040000 |
tree |
- |
b4b819554d96f8798ec6030c583263c80f73ff4c |
admin |
040000 |
tree |
- |
76a16691bc48bbe42bdc63a6d1244d2d49e4da2d |
artwork |
100755 |
blob |
30 |
92c4bc48245c00408cd7e1fd89bc1a03058f4ce4 |
configure |
040000 |
tree |
- |
f67d3605efbd6422a8acdd953578991139266391 |
docs |
100755 |
blob |
13319 |
abc39a1cd64d5484f57b4ac0cd6534f555d67a23 |
duilder |
100644 |
blob |
291 |
9e1e58c00a1422b1415d30359e713b30eb5d706a |
duilder.conf |
040000 |
tree |
- |
84ce58e019da8a942e80794fcd5280250407b60f |
hooks |
040000 |
tree |
- |
c6af494aa7d1f70ba9c0e1e677a8e09c36e94834 |
inc |
100644 |
blob |
3350 |
222c88ec7ba5f4409c202f0d52953c10451e2acb |
rocketgit.spec.in |
040000 |
tree |
- |
d27ab809d418b9c9a8d05af05af70b16d297ec2b |
root |
040000 |
tree |
- |
43d7f82c3284d470d34dbe4b8a77e94f3099ca34 |
samples |
040000 |
tree |
- |
4c682568ec22eb41fc2c89f188626d87c19dac48 |
scripts |
040000 |
tree |
- |
783200bb5dbca39dc01aad7dd0d2f57a5374db93 |
selinux |
040000 |
tree |
- |
017eac549ce835210dba43aa8a73aa0919107cee |
tests |
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