Personally, I rather like:
- https://www.zenko.io/
- https://min.io/
Even if I don't really buy into AWS too much (apart from enterprise stuff), it's good that they went ahead and created a standard for blob storage that other implementations could also benefit from, due to the compatibility with various libraries etc.Of course, there's also reliance on DynamoDB for this project, though that could also probably be swapped out for something else.
Many cloud providers provide an S3-Compatible object-store protocol. There's also open source projects self-hosting your own S3-Compatible object storage.
Swapping out DynamoDB for (say) Redis would also be fairly easy.
The source provided is a few hundred lines of pretty readable Golang.
While I'm not generally a fan of "If you don't like it, submit a PR to fix it" type responses - as a short example of how to implement something like this, it's a pretty decent starting point.
At this point it's basically a standard as many blob storage providers just implement the S3 API.
/giphy shutup and take my money
If you want to make git hosting easy, make a self-contained executable that requires nothing but a bare unix-like environment.