What are the differences to github / gitlab?
-> https://docs.gitea.io/en-us/comparison/
Gitea is a "github clone" that you can host yourself. With this you can (for example) host your own github locally without anyone having access to it. With github you have to pay to host private repositories.
Gitea can also run on a very small raspberry pi zero w without any performance issues. (The zero w has a single core ARM6 Processor)
It is written in go. The website is https://gitea.io/en-us/
Requirements: Have git installed (example: sudo apt-get install git)
Get the latest version of gitea (binary) from gitea (https://dl.gitea.io/gitea/) and make it executeable.
Example with version 1.13.0 on x64 linux (newest version as of 2020.12.26):
wget -O gitea https://dl.gitea.io/gitea/1.13.0/gitea-1.13.0-linux-amd64 chmod +x gitea
adduser \ --system \ --shell /bin/bash \ --gecos 'Git Version Control' \ --group \ --disabled-password \ --home /home/git \ git
mkdir -p /var/lib/gitea/{custom,data,log} chown -R git:git /var/lib/gitea/ chmod -R 750 /var/lib/gitea/ mkdir /etc/gitea chown root:git /etc/gitea chmod 770 /etc/gitea
cp gitea /usr/local/bin/gitea
wget https://github.com/go-gitea/gitea/blob/master/contrib/systemd/gitea.service sudo cp gitea.service /etc/systemd/system/gitea.service
sudo systemctl enable gitea --now
location /git/ { proxy_pass http://localhost:3000/; }If you want to setup gitea via this reverse-proxy then you also have to do the following:
... [server] PROTOCOL = http DOMAIN = localhost ROOT_URL = http://localhost:3000/git/ ...If this line doesn't exist then create the code block from above and save the file.