Most of my projects are hosted on either sr.ht and/or codeberg. But due to some uptime issues on both providors, I have been searching for a self-hosted solution in the case that one or both of them are down. After some searching I found stagit, a small fully static git hosting platform with minimal dependicies. Combined with a simple http proxy a fully stattic git hosting system is possible! Getting started! After installing stagit you should have both stagit and stagit-index in your path. You will also need to get stagit-post-receive from the official repo and install it into the path. Easiest way of doing that is putting it in /usr/local/bin/ Open the post-receive script in any text editor and change the variables at the top, Mainly reposdir and htmldir to match where you have decided to store your html and git repos on your system. Here is an example: # ... Start of the file ... # config # paths must be absolute. reposdir="/var/git/" dir="${reposdir}/${name}"…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.