Public git self hosting can be desirable for a number of reasons, but you may not want the expense and maintenance burden of a GitLab or other ‘full-service’ git hosting options, so this article discusses a lightweight option for a browsing or cloning your git repositories via HTTP/HTTPS (web), as well as pushing, pulling, cloning, etc using SSH.
At the very least it gives you a way to keep a backup you control of your valuable source code and documents that are also on a large central service.
https://www.danielfdickinson.ca is now designated as my new ‘official’ professional / technical website.
For small deployments (or home or small office use) you may find yourself in need of a ‘bare metal’ server, but not want or need the expense of an x64 machine. If the workload is not too demanding, a Raspberry Pi can be a good choice. The Pi has the benefit of being inexpensive, using little electricity, and taking little space.
A guide to configuring a static web server using Lighttpd on CentOS 7
A guide to configuring an OVH VPS (Virtual Private Server) with CentOS 7
For your self-hosted systems there are likely hosts you don’t want exposed to the wilds of ‘The Internet’, even for outgoing traffic, but you still want to be able to do package updates. Here is how you do that using NGINX as a proxy on a host on an isolated network and is also on an internet connected network.
Often you don’t need a full mirror of CentOS and/or only want a small set of packages from other repositories such as EPEL, so to save bandwidth, space, and time we give a working example of a partial mirror and custom repository setup.
Linux Network Monitoring Presentation ca. 2006