Recently, I have moved my personal source code to GitLab. It rendered self-hosted git repository at repository.sleeplessbeastie.eu obsolete, so I have created simple redirection on HAProxy load balanced to cover this specific case.
Serve files from memory with a fallback using nginx HTTP server.
Create simplest possible iptables firewall with quite relaxed rules that will allow all outgoing traffic, incoming icmp packets and ssh connections on eth0 interface.
Define and use variable to dynamically choose HAProxy backend depending on the URL parameter, HTTP header field and a cookie value.
Use kernel automonter to automatically mount directory shared over network using NFS.