Gitea installation tools & notes https://git.berlin
Go to file
2024-02-02 18:50:10 +00:00
assets large favicon 2018-12-15 20:26:50 +01:00
bin update script tweaks 2020-03-13 17:32:23 +01:00
custom homepage tweaks 2024-02-02 18:50:10 +00:00
.gitignore updates 2022-11-17 18:52:11 +00:00
.prettierrc homepage tweaks 2024-02-02 18:50:10 +00:00
gulpfile.js homepage tweaks 2024-02-02 18:50:10 +00:00
package-lock.json simplify styling 2024-02-02 15:12:46 +00:00
package.json simplify styling 2024-02-02 15:12:46 +00:00
README.md simplify styling 2024-02-02 15:12:46 +00:00

git.berlin

Gitea installation notes git.berlin


Migration from GitLab

Update Gitea

# run update script, passing version number as option
./bin/update-gitea.sh 1.6.1

Update script sets options by default, can be changed at top of script:

Option Default Description
giteaBinary /home/git/gitea/gitea Gitea binary path
arch linux-amd64 Server architecture
giteaStore /home/git/gitea-update Directory where update files will be stored
giteaUser git linux user Gitea is running under
giteaGroup git linux group Gitea is running under

Customization

The custom/ folder maps to /home/git/gitea/custom/ on the server. Its contents can be deployed via rsync with:

npm i
npm run deploy

Gitea Docs: Customizing Gitea

Handy commands

sudo su git
cd /home/git

vi gitea/custom/conf/app.ini

# Backup
# https://docs.gitea.io/en-us/backup-and-restore/
sudo su git
./gitea dump -c gitea/custom/conf/app.ini

# Restart Gitea service
sudo service gitea restart

# nginx
sudo vi /etc/nginx/sites-enabled/gitea
sudo service nginx restart

Gitea Documentation