====== Gitea ====== {{section>debian:mariadb&mariadb&noheader}} history apt-get update -yq && apt-get upgrade -yq apt -y install git bash-completion git --version sudo adduser --system --shell /bin/bash --gecos 'Git Version Control' --group --disabled-password --home /home/git git apt -y install mariadb-server mysql_secure_installation mysql -u root -p curl -s https://api.github.com/repos/go-gitea/gitea/releases/latest |grep browser_download_url | cut -d '"' -f 4 | grep '\linux-amd64$' | wget -i - chmod +x gitea-*-linux-amd64 sudo mv gitea-*-linux-amd64 /usr/local/bin/gitea gitea --version sudo mkdir -p /etc/gitea /var/lib/gitea/{custom,data,indexers,public,log} sudo chown git:git /var/lib/gitea/{data,indexers,log} sudo chmod 750 /var/lib/gitea/{data,indexers,log} sudo chown root:git /etc/gitea sudo chmod 770 /etc/gitea nano /etc/systemd/system/gitea.service sudo systemctl daemon-reload sudo systemctl enable --now gitea systemctl status gitea nano /etc/apache2/sites-available/gitea.conf nano /etc/gitea/app.ini mv /etc/apache2/sites-available/gitea.conf /etc/apache2/sites-available/git.lc.lviv.ua.conf sudo a2ensite git.lc.lviv.ua.conf sudo a2enmod proxy sudo a2enmod proxy_http systemctl reload apache2 sudo certbot --installer apache -d git.lc.lviv.ua systemctl reload apache2 nano /etc/gitea/app.ini systemctl restart gitea systemctl status gitea https://fazlerabbi37.github.io/take_back_my_data/gitea.html https://blog.containerize.com/2021/05/21/how-to-configure-apache-as-a-reverse-proxy-for-ubuntudebian/ https://computingforgeeks.com/install-gitea-git-service-on-debian-10-buster/ https://gitlab.com/packaging/gitea